mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-26 12:34:17 +01:00
add dvd motor off for GC users
This commit is contained in:
parent
2c87356ef8
commit
c01ab2fcd5
@ -665,11 +665,16 @@ ConfigureControllers ()
|
||||
/****************************************************************************
|
||||
* Main Menu
|
||||
***************************************************************************/
|
||||
int menucount = 7;
|
||||
int menucount = 8;
|
||||
char menuitems[][50] = {
|
||||
"Choose Game", "Controller Configuration", "Preferences",
|
||||
"Choose Game",
|
||||
"Controller Configuration",
|
||||
"Preferences",
|
||||
"Game Menu",
|
||||
"Credits", "Reset System", "Return to Loader"
|
||||
"Credits",
|
||||
"DVD Motor Off",
|
||||
"Reset System",
|
||||
"Return to Loader"
|
||||
};
|
||||
|
||||
void
|
||||
@ -681,6 +686,14 @@ MainMenu (int selectedMenu)
|
||||
int quit = 0;
|
||||
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
|
||||
if (!ROMLoaded)
|
||||
menuitems[3][0] = '\0';
|
||||
@ -730,11 +743,17 @@ MainMenu (int selectedMenu)
|
||||
break;
|
||||
|
||||
case 5:
|
||||
// turn the dvd motor off (GC only)
|
||||
#ifdef HW_DOL
|
||||
dvd_motor_off ();
|
||||
#endif
|
||||
|
||||
case 6:
|
||||
// Reset the Gamecube/Wii
|
||||
Reboot();
|
||||
break;
|
||||
|
||||
case 6:
|
||||
case 7:
|
||||
ExitToLoader();
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user