mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 19:51:48 +01:00
[Wii/Gamecube] DVD interface is now only initialized when needed
This commit is contained in:
parent
430726cdef
commit
f4e5694ae4
@ -88,6 +88,13 @@ static int MountDVD(void)
|
|||||||
{
|
{
|
||||||
GUI_MsgBoxOpen("Information", "Mounting DVD ...",1);
|
GUI_MsgBoxOpen("Information", "Mounting DVD ...",1);
|
||||||
|
|
||||||
|
/* initialize DVD interface if needed */
|
||||||
|
#ifdef HW_RVL
|
||||||
|
DI_Init();
|
||||||
|
#else
|
||||||
|
DVD_Init();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* check if DVD is already mounted */
|
/* check if DVD is already mounted */
|
||||||
if (dvd_mounted)
|
if (dvd_mounted)
|
||||||
{
|
{
|
||||||
|
@ -472,9 +472,8 @@ int main (int argc, char *argv[])
|
|||||||
/* enable 64-byte fetch mode for L2 cache */
|
/* enable 64-byte fetch mode for L2 cache */
|
||||||
L2Enhance();
|
L2Enhance();
|
||||||
|
|
||||||
/* initialize DI interface */
|
/* disable DVD cache */
|
||||||
DI_UseCache(0);
|
DI_UseCache(0);
|
||||||
DI_Init();
|
|
||||||
|
|
||||||
/* autodetect loader arguments */
|
/* autodetect loader arguments */
|
||||||
if ((argc >= 3) && (argv[1] != NULL))
|
if ((argc >= 3) && (argv[1] != NULL))
|
||||||
@ -499,11 +498,6 @@ int main (int argc, char *argv[])
|
|||||||
/* initialize video engine */
|
/* initialize video engine */
|
||||||
gx_video_Init();
|
gx_video_Init();
|
||||||
|
|
||||||
#ifndef HW_RVL
|
|
||||||
/* initialize DVD interface */
|
|
||||||
DVD_Init();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* initialize input engine */
|
/* initialize input engine */
|
||||||
gx_input_Init();
|
gx_input_Init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user