From 08e1e8de6e8a73eca9ca972d27a4f836251c0481 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Sat, 1 Apr 2023 03:02:59 -0700 Subject: [PATCH] Add -profile through -profile4 flags for splitscreen testing --- src/d_main.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/d_main.c b/src/d_main.c index 3dcb8c4c2..b754523c7 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -1874,6 +1874,27 @@ void D_SRB2Main(void) { PR_ApplyProfile(cv_lastprofile[i].value, i); } + + if (M_CheckParm("-profile")) + { + UINT8 num = atoi(M_GetNextParm()); + PR_ApplyProfile(num, 0); + } + if (M_CheckParm("-profile2")) + { + UINT8 num = atoi(M_GetNextParm()); + PR_ApplyProfile(num, 1); + } + if (M_CheckParm("-profile3")) + { + UINT8 num = atoi(M_GetNextParm()); + PR_ApplyProfile(num, 2); + } + if (M_CheckParm("-profile4")) + { + UINT8 num = atoi(M_GetNextParm()); + PR_ApplyProfile(num, 3); + } } if (autostart || netgame)