mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-01-26 02:31:18 +01:00
(bleh, too many cases to check)
This commit is contained in:
parent
f8bc536baf
commit
68087ab880
@ -1079,8 +1079,9 @@ void CMenu::_launchChannel(dir_discHdr *hdr)
|
|||||||
m_cat.save(true);
|
m_cat.save(true);
|
||||||
m_cfg.save(true);
|
m_cfg.save(true);
|
||||||
cleanup();
|
cleanup();
|
||||||
|
if(NAND_Emu && !neek2o())
|
||||||
if(useNK2o && NAND_Emu)
|
{
|
||||||
|
if(useNK2o)
|
||||||
{
|
{
|
||||||
if(!Load_Neek2o_Kernel())
|
if(!Load_Neek2o_Kernel())
|
||||||
{
|
{
|
||||||
@ -1093,9 +1094,8 @@ void CMenu::_launchChannel(dir_discHdr *hdr)
|
|||||||
|
|
||||||
ShutdownBeforeExit();
|
ShutdownBeforeExit();
|
||||||
Launch_nk(gameTitle, emuPath.size() > 1 ? emuPath.c_str() : NULL, rtrnID ? (((u64)(0x00010001) << 32) | (rtrnID & 0xFFFFFFFF)) : rtrnID);
|
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);
|
DeviceHandle.UnMount(emuPartition);
|
||||||
Nand::Instance()->Init(emuPath.c_str(), emuPartition, false);
|
Nand::Instance()->Init(emuPath.c_str(), emuPartition, false);
|
||||||
Nand::Instance()->Enable_Emu();
|
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!" );
|
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);
|
IOS_Close(ESHandle);
|
||||||
}
|
}
|
||||||
|
if(WII_Launch)
|
||||||
|
{
|
||||||
|
ShutdownBeforeExit();
|
||||||
|
WII_Initialize();
|
||||||
|
WII_LaunchTitle(gameTitle);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if(NAND_Emu)
|
if(NAND_Emu)
|
||||||
{
|
{
|
||||||
Nand::Instance()->Init(emuPath.c_str(), emuPartition, false);
|
Nand::Instance()->Init(emuPath.c_str(), emuPartition, false);
|
||||||
@ -1132,14 +1140,6 @@ void CMenu::_launchChannel(dir_discHdr *hdr)
|
|||||||
Sys_Exit();
|
Sys_Exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(WII_Launch)
|
|
||||||
{
|
|
||||||
ShutdownBeforeExit();
|
|
||||||
WII_Initialize();
|
|
||||||
WII_LaunchTitle(gameTitle);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
setLanguage(language);
|
setLanguage(language);
|
||||||
ocarina_load_code(cheatFile.get(), cheatSize);
|
ocarina_load_code(cheatFile.get(), cheatSize);
|
||||||
Identify(gameTitle);
|
Identify(gameTitle);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user