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

View File

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