*Forgot something

This commit is contained in:
dimok321 2009-06-13 23:47:38 +00:00
parent 587fdbbae2
commit bc8084fe75
2 changed files with 6 additions and 9 deletions

View File

@ -1816,6 +1816,9 @@ int MainMenu(int menu)
delete cover; delete cover;
delete coverImg; delete coverImg;
ShutdownAudio();
StopGX();
int ret = 0; int ret = 0;
struct discHdr *header = &gameList[gameSelected]; struct discHdr *header = &gameList[gameSelected];
@ -1870,6 +1873,9 @@ int MainMenu(int menu)
ret = Disc_Open(); ret = Disc_Open();
if(ret < 0) Sys_BackToLoader(); if(ret < 0) Sys_BackToLoader();
SDCard_deInit();
USBDevice_deInit();
u8 errorfixer002 = 0; u8 errorfixer002 = 0;
switch(fix002) switch(fix002)
{ {
@ -1999,13 +2005,6 @@ int MainMenu(int menu)
break; break;
} }
ShutdownAudio();
StopGX();
SDCard_deInit();
USBDevice_deInit();
USBStorage_Deinit();
mload_close();
ret = Disc_WiiBoot(videoselected, cheat, vipatch, Settings.patchcountrystrings, errorfixer002); ret = Disc_WiiBoot(videoselected, cheat, vipatch, Settings.patchcountrystrings, errorfixer002);
if (ret < 0) { if (ret < 0) {
Sys_LoadMenu(); Sys_LoadMenu();

View File

@ -284,8 +284,6 @@ s32 Disc_BootPartition(u64 offset, u8 videoselected, u8 cheat, u8 vipatch, u8 pa
WPAD_Flush(0); WPAD_Flush(0);
WPAD_Disconnect(0); WPAD_Disconnect(0);
WPAD_Shutdown(); WPAD_Shutdown();
WDVD_Close();
/* Shutdown IOS subsystems */ /* Shutdown IOS subsystems */
SYS_ResetSystem(SYS_SHUTDOWN, 0, 0); SYS_ResetSystem(SYS_SHUTDOWN, 0, 0);