From f9040335a7b38f026225173bbc523a5a6759e363 Mon Sep 17 00:00:00 2001 From: "overjoy.psm" Date: Mon, 10 Sep 2012 20:23:30 +0000 Subject: [PATCH] Because support for Wiiflow is currently only available in uneek2o and uneek2o is only able to use emulated nand dumps from the first partition on the USB-device the neek2o options are disabled now if a nand dump from another partition or SD-card is used. --- source/list/list.cpp | 1 - source/menu/menu_config_game.cpp | 7 +++++-- source/menu/menu_game.cpp | 3 +++ wiiflow.pnps | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/source/list/list.cpp b/source/list/list.cpp index 8634a9c1..9fd34127 100644 --- a/source/list/list.cpp +++ b/source/list/list.cpp @@ -413,7 +413,6 @@ void CList::GetChannels(vector &headerlist, string set } u32 count = m_channels.Count(); - gprintf("PFFF: Channel count: %d\n", count); headerlist.reserve(count); diff --git a/source/menu/menu_config_game.cpp b/source/menu/menu_config_game.cpp index 2f71f874..8c1cddc3 100644 --- a/source/menu/menu_config_game.cpp +++ b/source/menu/menu_config_game.cpp @@ -347,8 +347,11 @@ void CMenu::_showGameSettings(void) { m_btnMgr.show(m_gameSettingsLblCustom); m_btnMgr.show(m_gameSettingsBtnCustom); - m_btnMgr.show(m_gameSettingsLblLaunchNK); - m_btnMgr.show(m_gameSettingsBtnLaunchNK); + if(m_cfg.getInt("NAND", "partition", 0) == 1) + { + m_btnMgr.show(m_gameSettingsLblLaunchNK); + m_btnMgr.show(m_gameSettingsBtnLaunchNK); + } } else if(m_cf.getHdr()->type == TYPE_WII_GAME) { diff --git a/source/menu/menu_game.cpp b/source/menu/menu_game.cpp index 54fe177e..3337152b 100644 --- a/source/menu/menu_game.cpp +++ b/source/menu/menu_game.cpp @@ -1075,6 +1075,9 @@ void CMenu::_launchChannel(dir_discHdr *hdr) m_cat.save(true); m_cfg.save(true); cleanup(); + + if(useNK2o && emuPartition != 1) + useNK2o = false; if(useNK2o && !emu_disabled) { diff --git a/wiiflow.pnps b/wiiflow.pnps index c0712a13..f3871f27 100644 --- a/wiiflow.pnps +++ b/wiiflow.pnps @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file