- re-enable dvd_motor_off on GC

This commit is contained in:
michniewski 2008-09-28 03:12:15 +00:00
parent 8d07410616
commit dba88e0437
3 changed files with 22 additions and 6 deletions

View File

@ -10,8 +10,8 @@
* DVD I/O functions
***************************************************************************/
#ifndef _NGCDVD_
#define _NGCDVD_
#ifndef _NGCDVD_H_
#define _NGCDVD_H_
int getpvd ();
int ParseDVDdirectory ();
@ -20,5 +20,8 @@ bool TestDVD();
int dvd_read (void *dst, unsigned int len, u64 offset);
bool SwitchDVDFolder(char dir[]);
void SetDVDDriveType();
#ifdef HW_DOL
void dvd_motor_off ();
#endif
#endif

View File

@ -1023,7 +1023,7 @@ ConfigureControllers ()
/****************************************************************************
* Main Menu
***************************************************************************/
int menucount = 8;
int menucount = 9;
char menuitems[][50] = {
"Choose Game",
"Controller Configuration",
@ -1031,6 +1031,7 @@ char menuitems[][50] = {
"Game Menu",
"Video Options",
"Credits",
"DVD Motor Off",
"Reset System",
"Return to Loader"
};
@ -1047,6 +1048,11 @@ mainmenu (int selectedMenu)
else
sprintf (menuitems[3], "Game Menu");
#ifndef HW_DOL
// don't show dvd motor off on the wii
menuitems[6][0] = '\0';
#endif
VIDEO_WaitVSync ();
while (quit == 0)
@ -1095,11 +1101,18 @@ mainmenu (int selectedMenu)
break;
case 6:
// turn the dvd motor off (GC only)
#ifdef HW_DOL
dvd_motor_off ();
#endif
break;
case 7:
// Reset the Gamecube/Wii
Reboot();
break;
case 7:
case 8:
// Exit to Loader
#ifdef HW_RVL
#ifdef WII_DVD