Introduce MENUROOT_COOPCONTINUE and MENUROOT_4MBFILEMGR constants

This commit is contained in:
Ryan Dwyer 2021-01-04 17:40:59 +10:00
parent 591c39b04e
commit c35189cfe3
5 changed files with 19 additions and 19 deletions

View File

@ -525,7 +525,7 @@ void endscreenHandleContinue(s32 context)
}
} else {
if (context == 1) {
menuPushRootDialog(&g_MenuDialogContinueOrReplay, MENUROOT_9);
menuPushRootDialog(&g_MenuDialogContinueOrReplay, MENUROOT_COOPCONTINUE);
} else {
menuPushDialog(&g_MenuDialogContinueOrReplay);
}
@ -555,7 +555,7 @@ void endscreenHandleContinue(s32 context)
func0f10d770();
if (context == 1) {
menuPushRootDialog(func0f10d730(), MENUROOT_9);
menuPushRootDialog(func0f10d730(), MENUROOT_COOPCONTINUE);
} else {
menuPushDialog(func0f10d730());
}
@ -1600,7 +1600,7 @@ void soloPushSoloModeEndscreen(void)
|| !objectiveIsAllComplete()) {
// Failed or aborted
func0f10d770();
menuPushRootDialog(&g_MenuDialogRetryMission, MENUROOT_9);
menuPushRootDialog(&g_MenuDialogRetryMission, MENUROOT_COOPCONTINUE);
} else {
// Completed
endscreenHandleContinue(1);

View File

@ -2483,7 +2483,7 @@ glabel var7f1a863c
// }
// }
// break;
// case MENUROOT_9: // d348
// case MENUROOT_COOPCONTINUE: // d348
// if (g_Vars.coopplayernum >= 0) {
// mpSetPaused(MPPAUSEMODE_UNPAUSED);
// g_Vars.mplayerisrunning = false;
@ -2564,7 +2564,7 @@ glabel var7f1a863c
// case MENUROOT_MPENDSCREEN:
// case MENUROOT_FILEMGR:
// case MENUROOT_BOOTPAKMGR:
// case MENUROOT_10:
// case MENUROOT_4MBFILEMGR:
// case MENUROOT_4MBMAINMENU:
// case MENUROOT_TRAINING: // f01d5b4
// if (g_Menus[mpindex].curframe) {

View File

@ -4965,7 +4965,7 @@ bool func0f0bc4c0(void)
return true;
}
return (var80070764 && !var8005d9d0) || menuGetRoot() == MENUROOT_9;
return (var80070764 && !var8005d9d0) || menuGetRoot() == MENUROOT_COOPCONTINUE;
}
s16 currentPlayerGetViewportWidth(void)

View File

@ -84,7 +84,7 @@ void func0f10cb2c(void)
mpDetermineUnlockedFeatures();
menuPushRootDialog(&menudialog_fileselect2, MENUROOT_10);
menuPushRootDialog(&menudialog_fileselect2, MENUROOT_4MBFILEMGR);
}
g_MpPlayerNum = prevplayernum;

View File

@ -1197,18 +1197,18 @@
#define MENUOP_CLOSE 101
#define MENUOP_TICK 102
#define MENUROOT_ENDSCREEN 1
#define MENUROOT_MAINMENU 2
#define MENUROOT_MPSETUP 3
#define MENUROOT_MPPAUSE 4
#define MENUROOT_MPENDSCREEN 5
#define MENUROOT_FILEMGR 6
#define MENUROOT_BOOTPAKMGR 7
#define MENUROOT_PICKTARGET 8
#define MENUROOT_9 9
#define MENUROOT_10 10
#define MENUROOT_4MBMAINMENU 11
#define MENUROOT_TRAINING 13
#define MENUROOT_ENDSCREEN 1
#define MENUROOT_MAINMENU 2
#define MENUROOT_MPSETUP 3
#define MENUROOT_MPPAUSE 4
#define MENUROOT_MPENDSCREEN 5
#define MENUROOT_FILEMGR 6
#define MENUROOT_BOOTPAKMGR 7
#define MENUROOT_PICKTARGET 8
#define MENUROOT_COOPCONTINUE 9
#define MENUROOT_4MBFILEMGR 10
#define MENUROOT_4MBMAINMENU 11
#define MENUROOT_TRAINING 13
#define MENUSOUND_SWIPE 0x00 // Navigating to left/right dialog
#define MENUSOUND_OPENDIALOG 0x01