mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-27 21:14:21 +01:00
- re-enable dvd_motor_off on GC
This commit is contained in:
parent
8d07410616
commit
dba88e0437
@ -507,7 +507,7 @@ void uselessinquiry ()
|
|||||||
* dvd_motor_off( )
|
* dvd_motor_off( )
|
||||||
* Turns off DVD drive motor so it doesn't make noise (Gamecube only)
|
* Turns off DVD drive motor so it doesn't make noise (Gamecube only)
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
void dvd_motor_off( )
|
void dvd_motor_off ()
|
||||||
{
|
{
|
||||||
dvd[0] = 0x2e;
|
dvd[0] = 0x2e;
|
||||||
dvd[1] = 0;
|
dvd[1] = 0;
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
* DVD I/O functions
|
* DVD I/O functions
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#ifndef _NGCDVD_
|
#ifndef _NGCDVD_H_
|
||||||
#define _NGCDVD_
|
#define _NGCDVD_H_
|
||||||
|
|
||||||
int getpvd ();
|
int getpvd ();
|
||||||
int ParseDVDdirectory ();
|
int ParseDVDdirectory ();
|
||||||
@ -20,5 +20,8 @@ bool TestDVD();
|
|||||||
int dvd_read (void *dst, unsigned int len, u64 offset);
|
int dvd_read (void *dst, unsigned int len, u64 offset);
|
||||||
bool SwitchDVDFolder(char dir[]);
|
bool SwitchDVDFolder(char dir[]);
|
||||||
void SetDVDDriveType();
|
void SetDVDDriveType();
|
||||||
|
#ifdef HW_DOL
|
||||||
|
void dvd_motor_off ();
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1023,7 +1023,7 @@ ConfigureControllers ()
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Main Menu
|
* Main Menu
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
int menucount = 8;
|
int menucount = 9;
|
||||||
char menuitems[][50] = {
|
char menuitems[][50] = {
|
||||||
"Choose Game",
|
"Choose Game",
|
||||||
"Controller Configuration",
|
"Controller Configuration",
|
||||||
@ -1031,6 +1031,7 @@ char menuitems[][50] = {
|
|||||||
"Game Menu",
|
"Game Menu",
|
||||||
"Video Options",
|
"Video Options",
|
||||||
"Credits",
|
"Credits",
|
||||||
|
"DVD Motor Off",
|
||||||
"Reset System",
|
"Reset System",
|
||||||
"Return to Loader"
|
"Return to Loader"
|
||||||
};
|
};
|
||||||
@ -1046,6 +1047,11 @@ mainmenu (int selectedMenu)
|
|||||||
menuitems[3][0] = '\0';
|
menuitems[3][0] = '\0';
|
||||||
else
|
else
|
||||||
sprintf (menuitems[3], "Game Menu");
|
sprintf (menuitems[3], "Game Menu");
|
||||||
|
|
||||||
|
#ifndef HW_DOL
|
||||||
|
// don't show dvd motor off on the wii
|
||||||
|
menuitems[6][0] = '\0';
|
||||||
|
#endif
|
||||||
|
|
||||||
VIDEO_WaitVSync ();
|
VIDEO_WaitVSync ();
|
||||||
|
|
||||||
@ -1093,13 +1099,20 @@ mainmenu (int selectedMenu)
|
|||||||
Credits ();
|
Credits ();
|
||||||
WaitButtonA ();
|
WaitButtonA ();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 6:
|
case 6:
|
||||||
|
// turn the dvd motor off (GC only)
|
||||||
|
#ifdef HW_DOL
|
||||||
|
dvd_motor_off ();
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 7:
|
||||||
// Reset the Gamecube/Wii
|
// Reset the Gamecube/Wii
|
||||||
Reboot();
|
Reboot();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 7:
|
case 8:
|
||||||
// Exit to Loader
|
// Exit to Loader
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
#ifdef WII_DVD
|
#ifdef WII_DVD
|
||||||
|
Loading…
Reference in New Issue
Block a user