mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-01-24 09:41:10 +01:00
-fixed booting emu nand games
This commit is contained in:
parent
3f6e4beffe
commit
47892032f5
@ -131,6 +131,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
delete mainMenu;
|
delete mainMenu;
|
||||||
|
|
||||||
|
ISFS_Deinitialize();
|
||||||
Sys_Exit();
|
Sys_Exit();
|
||||||
exit(1);
|
exit(1);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -502,7 +502,6 @@ void CMenu::cleanup()
|
|||||||
|
|
||||||
if(!m_reload)
|
if(!m_reload)
|
||||||
{
|
{
|
||||||
ISFS_Deinitialize();
|
|
||||||
DeviceHandler::DestroyInstance();
|
DeviceHandler::DestroyInstance();
|
||||||
m_vid.CheckWaitThread(true);
|
m_vid.CheckWaitThread(true);
|
||||||
m_vid.cleanup();
|
m_vid.cleanup();
|
||||||
|
@ -843,7 +843,7 @@ void CMenu::_launchGC(dir_discHdr *hdr, bool DML)
|
|||||||
m_cat.save(true);
|
m_cat.save(true);
|
||||||
m_cfg.save(true);
|
m_cfg.save(true);
|
||||||
cleanup();
|
cleanup();
|
||||||
|
ISFS_Deinitialize();
|
||||||
USBStorage_Deinit();
|
USBStorage_Deinit();
|
||||||
SDHC_Init();
|
SDHC_Init();
|
||||||
|
|
||||||
@ -877,6 +877,7 @@ void CMenu::_launchHomebrew(const char *filepath, vector<string> arguments)
|
|||||||
cleanup(); // wifi and sd gecko doesnt work anymore after cleanup
|
cleanup(); // wifi and sd gecko doesnt work anymore after cleanup
|
||||||
|
|
||||||
LoadHomebrew(filepath);
|
LoadHomebrew(filepath);
|
||||||
|
ISFS_Deinitialize();
|
||||||
USBStorage_Deinit();
|
USBStorage_Deinit();
|
||||||
AddBootArgument(filepath);
|
AddBootArgument(filepath);
|
||||||
for(u32 i = 0; i < arguments.size(); ++i)
|
for(u32 i = 0; i < arguments.size(); ++i)
|
||||||
@ -1121,7 +1122,7 @@ void CMenu::_launchChannel(dir_discHdr *hdr)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ISFS_Deinitialize();
|
||||||
if(rtrn != NULL && strlen(rtrn) == 4)
|
if(rtrn != NULL && strlen(rtrn) == 4)
|
||||||
{
|
{
|
||||||
int rtrnID = rtrn[0] << 24 | rtrn[1] << 16 | rtrn[2] << 8 | rtrn[3];
|
int rtrnID = rtrn[0] << 24 | rtrn[1] << 16 | rtrn[2] << 8 | rtrn[3];
|
||||||
@ -1404,7 +1405,7 @@ void CMenu::_launchGame(dir_discHdr *hdr, bool dvd)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
IOSReloadBlock(IOS_GetVersion(), true);
|
IOSReloadBlock(IOS_GetVersion(), true);
|
||||||
|
ISFS_Deinitialize();
|
||||||
USBStorage_Deinit();
|
USBStorage_Deinit();
|
||||||
if(currentPartition == 0)
|
if(currentPartition == 0)
|
||||||
SDHC_Init();
|
SDHC_Init();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user