mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-23 10:21:55 +01:00
*Forgot something
This commit is contained in:
parent
587fdbbae2
commit
bc8084fe75
@ -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();
|
||||||
|
@ -285,8 +285,6 @@ s32 Disc_BootPartition(u64 offset, u8 videoselected, u8 cheat, u8 vipatch, u8 pa
|
|||||||
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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user