[Wii/Gamecube] DVD interface is now only initialized when needed

This commit is contained in:
EkeEke 2013-10-29 00:00:12 +01:00 committed by twinaphex
parent 430726cdef
commit f4e5694ae4
2 changed files with 8 additions and 7 deletions

View File

@ -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)
{ {

View File

@ -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();