-fixed booting emu nand games

This commit is contained in:
fix94.1 2012-07-08 14:56:07 +00:00
parent 3f6e4beffe
commit 47892032f5
3 changed files with 6 additions and 5 deletions

View File

@ -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;

View File

@ -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();

View File

@ -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)
@ -1044,7 +1045,7 @@ void CMenu::_launchChannel(dir_discHdr *hdr)
return; return;
} }
} }
if(!forwarder) if(!forwarder)
{ {
@ -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();