mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-27 13:44:15 +01:00
-fuck this emu nand shit and use the code before r713 again
with that one million checks
This commit is contained in:
parent
c3b3429645
commit
3e8c4b2b6d
@ -1072,9 +1072,9 @@ void CMenu::_launchChannel(dir_discHdr *hdr)
|
||||
if(!forwarder && has_enabled_providers() && _initNetwork() == 0)
|
||||
add_game_to_card(id.c_str());
|
||||
|
||||
string emuPath = m_cfg.getString("NAND", "path", STDEMU_DIR);;
|
||||
//m_partRequest = m_cfg.getInt("NAND", "partition", 0);
|
||||
//int emuPartition = _FindEmuPart(&emuPath, m_partRequest, false);
|
||||
string emuPath;
|
||||
m_partRequest = m_cfg.getInt("NAND", "partition", 0);
|
||||
int emuPartition = _FindEmuPart(&emuPath, m_partRequest, false);
|
||||
int emulate_mode = min(max(0, m_cfg.getInt("NAND", "emulation", 1)), (int)ARRAY_SIZE(CMenu::_NandEmu) - 1);
|
||||
|
||||
int userIOS = m_gcfg2.getInt(id, "ios", 0);
|
||||
@ -1087,8 +1087,8 @@ void CMenu::_launchChannel(dir_discHdr *hdr)
|
||||
m_cfg.save(true);
|
||||
cleanup();
|
||||
|
||||
if(useNK2o && currentPartition != 1)
|
||||
useNK2o = false;
|
||||
/*if(useNK2o && emuPartition != 1)
|
||||
useNK2o = false;*/
|
||||
|
||||
if(useNK2o && !emu_disabled)
|
||||
{
|
||||
@ -1109,8 +1109,8 @@ void CMenu::_launchChannel(dir_discHdr *hdr)
|
||||
{
|
||||
if(!emu_disabled)
|
||||
{
|
||||
DeviceHandler::Instance()->UnMount(currentPartition);
|
||||
Nand::Instance()->Init(emuPath.c_str(), currentPartition, false);
|
||||
DeviceHandler::Instance()->UnMount(emuPartition);
|
||||
Nand::Instance()->Init(emuPath.c_str(), emuPartition, false);
|
||||
Nand::Instance()->Enable_Emu();
|
||||
}
|
||||
gameIOS = channel.GetRequestedIOS(gameTitle);
|
||||
@ -1135,7 +1135,7 @@ void CMenu::_launchChannel(dir_discHdr *hdr)
|
||||
}
|
||||
if(!emu_disabled)
|
||||
{
|
||||
Nand::Instance()->Init(emuPath.c_str(), currentPartition, false);
|
||||
Nand::Instance()->Init(emuPath.c_str(), emuPartition, false);
|
||||
if(emulate_mode == 1)
|
||||
Nand::Instance()->Set_FullMode(true);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user