From c01ab2fcd5c9e501063452dbed8bd56482dee942 Mon Sep 17 00:00:00 2001 From: dborth Date: Thu, 13 Nov 2008 08:00:16 +0000 Subject: [PATCH] add dvd motor off for GC users --- source/ngc/menu.cpp | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/source/ngc/menu.cpp b/source/ngc/menu.cpp index be2b297..8f9022e 100644 --- a/source/ngc/menu.cpp +++ b/source/ngc/menu.cpp @@ -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;