add dvd motor off for GC users

This commit is contained in:
dborth 2008-11-13 08:00:16 +00:00
parent 2c87356ef8
commit c01ab2fcd5

View File

@ -665,11 +665,16 @@ ConfigureControllers ()
/**************************************************************************** /****************************************************************************
* Main Menu * Main Menu
***************************************************************************/ ***************************************************************************/
int menucount = 7; int menucount = 8;
char menuitems[][50] = { char menuitems[][50] = {
"Choose Game", "Controller Configuration", "Preferences", "Choose Game",
"Controller Configuration",
"Preferences",
"Game Menu", "Game Menu",
"Credits", "Reset System", "Return to Loader" "Credits",
"DVD Motor Off",
"Reset System",
"Return to Loader"
}; };
void void
@ -681,6 +686,14 @@ MainMenu (int selectedMenu)
int quit = 0; int quit = 0;
int ret; int ret;
#ifdef HW_RVL
// don't show dvd motor off on the wii
menuitems[5][0] = 0;
// rename reset/exit items
sprintf (menuitems[6], "Return to Wii Menu");
sprintf (menuitems[7], "Return to Homebrew Channel");
#endif
// disable game-specific menu items if a ROM isn't loaded // disable game-specific menu items if a ROM isn't loaded
if (!ROMLoaded) if (!ROMLoaded)
menuitems[3][0] = '\0'; menuitems[3][0] = '\0';
@ -730,11 +743,17 @@ MainMenu (int selectedMenu)
break; break;
case 5: case 5:
// turn the dvd motor off (GC only)
#ifdef HW_DOL
dvd_motor_off ();
#endif
case 6:
// Reset the Gamecube/Wii // Reset the Gamecube/Wii
Reboot(); Reboot();
break; break;
case 6: case 7:
ExitToLoader(); ExitToLoader();
break; break;