From 721c27c3292a2cb25989d5e920303742cdfbabb8 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Sat, 2 Sep 2023 22:05:33 +0200 Subject: [PATCH] port: add exit option to 4mb menu --- src/game/fmb.c | 10 ++++++++++ src/include/game/mainmenu.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/src/game/fmb.c b/src/game/fmb.c index 2fe4c2c05..f6de5aadd 100644 --- a/src/game/fmb.c +++ b/src/game/fmb.c @@ -585,6 +585,16 @@ struct menuitem g_MainMenu4MbMenuItems[] = { 0, (void *)&g_ChangeAgentMenuDialog, }, +#ifndef PLATFORM_N64 + { + MENUITEMTYPE_SELECTABLE, + 0, + MENUITEMFLAG_SELECTABLE_OPENSDIALOG | MENUITEMFLAG_BIGFONT, + L_OPTIONS_110, // "Exit Game" + 0x00000007, + (void *)&g_ExitGameMenuDialog, + }, +#endif { MENUITEMTYPE_END }, }; diff --git a/src/include/game/mainmenu.h b/src/include/game/mainmenu.h index 349d7458c..c44cd7c7d 100644 --- a/src/include/game/mainmenu.h +++ b/src/include/game/mainmenu.h @@ -10,6 +10,9 @@ extern struct menudialogdef g_AcceptMissionMenuDialog; extern struct menudialogdef g_PreAndPostMissionBriefingMenuDialog; extern struct menudialogdef g_RetryMissionMenuDialog; extern struct menudialogdef g_NextMissionMenuDialog; +#ifndef PLATFORM_N64 +extern struct menudialogdef g_ExitGameMenuDialog; +#endif char *menuTextCurrentStageName(struct menuitem *item); char *soloMenuTextDifficulty(struct menuitem *item);