(bleh, too many cases to check)

This commit is contained in:
fix94.1 2012-10-04 16:24:52 +00:00
parent f8bc536baf
commit 68087ab880

View File

@ -1079,8 +1079,9 @@ void CMenu::_launchChannel(dir_discHdr *hdr)
m_cat.save(true);
m_cfg.save(true);
cleanup();
if(useNK2o && NAND_Emu)
if(NAND_Emu && !neek2o())
{
if(useNK2o)
{
if(!Load_Neek2o_Kernel())
{
@ -1093,9 +1094,8 @@ void CMenu::_launchChannel(dir_discHdr *hdr)
ShutdownBeforeExit();
Launch_nk(gameTitle, emuPath.size() > 1 ? emuPath.c_str() : NULL, rtrnID ? (((u64)(0x00010001) << 32) | (rtrnID & 0xFFFFFFFF)) : rtrnID);
while(1);
}
if(NAND_Emu)
{
DeviceHandle.UnMount(emuPartition);
Nand::Instance()->Init(emuPath.c_str(), emuPartition, false);
Nand::Instance()->Enable_Emu();
@ -1118,6 +1118,14 @@ void CMenu::_launchChannel(dir_discHdr *hdr)
gprintf("Return to channel %s %s. Using new d2x way\n", rtrn, IOS_Ioctlv(ESHandle, 0xA1, 1, 0, vector) != -101 ? "Succeeded" : "Failed!" );
IOS_Close(ESHandle);
}
if(WII_Launch)
{
ShutdownBeforeExit();
WII_Initialize();
WII_LaunchTitle(gameTitle);
}
else
{
if(NAND_Emu)
{
Nand::Instance()->Init(emuPath.c_str(), emuPartition, false);
@ -1132,14 +1140,6 @@ void CMenu::_launchChannel(dir_discHdr *hdr)
Sys_Exit();
}
}
if(WII_Launch)
{
ShutdownBeforeExit();
WII_Initialize();
WII_LaunchTitle(gameTitle);
}
else
{
setLanguage(language);
ocarina_load_code(cheatFile.get(), cheatSize);
Identify(gameTitle);