From 1791a28b61ad86d90189845d50c9c8039927ac9f Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Fri, 4 Jan 2013 18:16:12 +0000 Subject: [PATCH] -added new option, "neek_return_default" (no by default), if you set it to no then wiiflow will use the "path" directory in [NAND] section to return to neek, if you set it to yes then wiiflow will not set any path to return to neek --- source/menu/menu_main.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/source/menu/menu_main.cpp b/source/menu/menu_main.cpp index 51e26ff3..5ce65c9c 100644 --- a/source/menu/menu_main.cpp +++ b/source/menu/menu_main.cpp @@ -784,10 +784,15 @@ int CMenu::main(void) } else if(Sys_GetExitTo() == EXIT_TO_SMNK2O || Sys_GetExitTo() == EXIT_TO_WFNK2O) { - string emuPath; - m_current_view = COVERFLOW_CHANNEL; /* So we get the NAND path */ - _FindEmuPart(emuPath, false); - Sys_SetNeekPath(NandHandle.Get_NandPath()); + const char *ReturnPath = NULL; + if(!m_cfg.getBool(CHANNEL_DOMAIN, "neek_return_default", false)) + { + string emuPath; + m_current_view = COVERFLOW_CHANNEL; /* So we get the path */ + _FindEmuPart(emuPath, false); + ReturnPath = NandHandle.Get_NandPath(); + } + Sys_SetNeekPath(ReturnPath); } //gprintf("Saving configuration files\n"); m_cfg.save();