fix broken alt dol loading stuff.

This commit is contained in:
giantpune 2009-06-25 21:15:57 +00:00
parent d87fdb5df8
commit 68a24d0784

View File

@ -1053,6 +1053,8 @@ int MenuDiscList()
alternatedol = off; alternatedol = off;
} }
if (alternatedol != off){ if (alternatedol != off){
SDCard_Init();
USBDevice_Init();
FILE *exeFile = NULL; FILE *exeFile = NULL;
char nipple[100]; char nipple[100];
/* Open dol File and check exist */ /* Open dol File and check exist */
@ -1063,8 +1065,9 @@ int MenuDiscList()
{ {
sprintf(nipple, "%s %s",nipple,tr("does not exist! You Messed something up, Idiot.")); sprintf(nipple, "%s %s",nipple,tr("does not exist! You Messed something up, Idiot."));
WindowPrompt(tr("Error"),nipple,tr("OK"),NULL,NULL,NULL); WindowPrompt(tr("Error"),nipple,tr("OK"),NULL,NULL,NULL);
SDCard_Init();
menu = MENU_DISCLIST; menu = MENU_DISCLIST;
wiilight(0);
break; break;
} }
} }
@ -1107,6 +1110,8 @@ int MenuDiscList()
alternatedol = off; alternatedol = off;
} }
if (alternatedol != off){ if (alternatedol != off){
SDCard_Init();
USBDevice_Init();
FILE *exeFile = NULL; FILE *exeFile = NULL;
char nipple[100]; char nipple[100];
/* Open dol File and check exist */ /* Open dol File and check exist */
@ -1117,8 +1122,9 @@ int MenuDiscList()
{ //alt dol is not there, so make them feel bad for wasting our time. and boot the game anyways, just for spite { //alt dol is not there, so make them feel bad for wasting our time. and boot the game anyways, just for spite
sprintf(nipple, "%s %s",nipple,tr("does not exist! You Messed something up, Idiot.")); sprintf(nipple, "%s %s",nipple,tr("does not exist! You Messed something up, Idiot."));
WindowPrompt(tr("Error"),nipple,tr("OK"),NULL,NULL,NULL); WindowPrompt(tr("Error"),nipple,tr("OK"),NULL,NULL,NULL);
SDCard_Init();
menu = MENU_DISCLIST; menu = MENU_DISCLIST;
wiilight(0);
break; break;
} }