mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Clean up interactions between Goner Setup and restoreMenu behaviour
This commit is contained in:
parent
83025f10e9
commit
b308a81e9d
3 changed files with 12 additions and 4 deletions
|
|
@ -648,6 +648,7 @@ boolean M_MenuExtraPressed(UINT8 pid);
|
|||
boolean M_MenuExtraHeld(UINT8 pid);
|
||||
|
||||
void M_StartControlPanel(void);
|
||||
void M_ValidateRestoreMenu(void);
|
||||
menu_t *M_SpecificMenuRestore(menu_t *torestore);
|
||||
void M_ClearMenus(boolean callexitmenufunc);
|
||||
void M_SelectableClearMenus(INT32 choice);
|
||||
|
|
|
|||
|
|
@ -434,6 +434,12 @@ void M_PlayMenuJam(void)
|
|||
|
||||
#undef IsCurrentlyPlaying
|
||||
|
||||
void M_ValidateRestoreMenu(void)
|
||||
{
|
||||
if (restoreMenu == NULL || restoreMenu == &MAIN_GonerDef)
|
||||
restoreMenu = &MainDef;
|
||||
}
|
||||
|
||||
//
|
||||
// M_SpecificMenuRestore
|
||||
//
|
||||
|
|
@ -587,7 +593,10 @@ void M_StartControlPanel(void)
|
|||
{
|
||||
// Are you ready for the First Boot Experience?
|
||||
M_ResetOptions();
|
||||
|
||||
currentMenu = &MAIN_GonerDef;
|
||||
restoreMenu = NULL;
|
||||
|
||||
M_PlayMenuJam();
|
||||
}
|
||||
else if (cv_currprofile.value == -1) // Only ask once per session.
|
||||
|
|
@ -618,8 +627,7 @@ void M_StartControlPanel(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (restoreMenu == NULL || restoreMenu == &MAIN_GonerDef)
|
||||
restoreMenu = &MainDef;
|
||||
M_ValidateRestoreMenu();
|
||||
currentMenu = M_SpecificMenuRestore(M_InterruptMenuWithChallenges(restoreMenu));
|
||||
restoreMenu = NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -47,8 +47,7 @@ void M_FirstPickProfile(INT32 c)
|
|||
|
||||
PR_ApplyProfile(optionsmenu.profilen, 0);
|
||||
|
||||
if (restoreMenu == NULL)
|
||||
restoreMenu = &MainDef;
|
||||
M_ValidateRestoreMenu();
|
||||
M_SetupNextMenu(M_SpecificMenuRestore(M_InterruptMenuWithChallenges(restoreMenu)), false);
|
||||
restoreMenu = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue