mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Without access to the full game, trying to back out of the Goner Setup/Tutorial will give you a quit prompt instead
This commit is contained in:
parent
0f687be7b5
commit
4c284680ff
2 changed files with 25 additions and 1 deletions
|
|
@ -27,6 +27,8 @@ menuitem_t MAIN_Goner[] =
|
||||||
{.routine = M_GonerTutorial}, 0, 0},
|
{.routine = M_GonerTutorial}, 0, 0},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static boolean M_GonerInputs(INT32 ch);
|
||||||
|
|
||||||
menu_t MAIN_GonerDef = {
|
menu_t MAIN_GonerDef = {
|
||||||
sizeof (MAIN_Goner) / sizeof (menuitem_t),
|
sizeof (MAIN_Goner) / sizeof (menuitem_t),
|
||||||
NULL,
|
NULL,
|
||||||
|
|
@ -41,7 +43,7 @@ menu_t MAIN_GonerDef = {
|
||||||
M_GonerTick,
|
M_GonerTick,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
M_GonerInputs,
|
||||||
};
|
};
|
||||||
|
|
||||||
void M_GonerTick(void)
|
void M_GonerTick(void)
|
||||||
|
|
@ -109,3 +111,18 @@ void M_GonerTutorial(INT32 choice)
|
||||||
&M_QuitResponse, MM_YESNO, "I agree", "Cancel");
|
&M_QuitResponse, MM_YESNO, "I agree", "Cancel");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static boolean M_GonerInputs(INT32 ch)
|
||||||
|
{
|
||||||
|
const UINT8 pid = 0;
|
||||||
|
(void)ch;
|
||||||
|
|
||||||
|
if (M_MenuBackPressed(pid))
|
||||||
|
{
|
||||||
|
// No returning to the title screen.
|
||||||
|
M_QuitSRB2(-1);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -499,5 +499,12 @@ void M_EndGame(INT32 choice)
|
||||||
if (!Playing())
|
if (!Playing())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (M_GameTrulyStarted() == false)
|
||||||
|
{
|
||||||
|
// No returning to the title screen.
|
||||||
|
M_QuitSRB2(-1);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
M_StartMessage("Return to Menu", M_GetText("Are you sure you want to\nreturn to the menu?\n"), &M_ExitGameResponse, MM_YESNO, NULL, NULL);
|
M_StartMessage("Return to Menu", M_GetText("Are you sure you want to\nreturn to the menu?\n"), &M_ExitGameResponse, MM_YESNO, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue