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

This commit is contained in:
EkeEke 2013-10-29 00:00:12 +01:00
parent e14c157433
commit 11b427faaa
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);
/* initialize DVD interface if needed */
#ifdef HW_RVL
DI_Init();
#else
DVD_Init();
#endif
/* check if DVD is already mounted */
if (dvd_mounted)
{

View File

@ -472,9 +472,8 @@ int main (int argc, char *argv[])
/* enable 64-byte fetch mode for L2 cache */
L2Enhance();
/* initialize DI interface */
/* disable DVD cache */
DI_UseCache(0);
DI_Init();
/* autodetect loader arguments */
if ((argc >= 3) && (argv[1] != NULL))
@ -499,11 +498,6 @@ int main (int argc, char *argv[])
/* initialize video engine */
gx_video_Init();
#ifndef HW_RVL
/* initialize DVD interface */
DVD_Init();
#endif
/* initialize input engine */
gx_input_Init();