-added b_on_mode_to_source option to wiiflow.ini. If set to yes pressing 'b' on mode/view icon will take you to the source menu.

This commit is contained in:
fledge68 2012-06-21 15:22:17 +00:00
parent 7847704025
commit f6cba49acc

View File

@ -454,10 +454,22 @@ int CMenu::main(void)
//Events to Switch off/on nand emu
else if(m_btnMgr.selected(m_mainBtnChannel) || m_btnMgr.selected(m_mainBtnUsb) || m_btnMgr.selected(m_mainBtnDML)|| m_btnMgr.selected(m_mainBtnEmu) || m_btnMgr.selected(m_mainBtnHomebrew))
{
m_cfg.setBool("NAND", "disable", !m_cfg.getBool("NAND", "disable", true));
gprintf("EmuNand is %s\n", m_cfg.getBool("NAND", "disable", true) ? "Disabled" : "Enabled");
m_current_view = COVERFLOW_CHANNEL;
LoadView();
if(m_cfg.getBool("GENERAL", "b_on_mode_to_source", false))
{
_hideMain();
if(!_Source()) //Different source selected
LoadView();
else
_showMain();
continue;
}
else
{
m_cfg.setBool("NAND", "disable", !m_cfg.getBool("NAND", "disable", true));
gprintf("EmuNand is %s\n", m_cfg.getBool("NAND", "disable", true) ? "Disabled" : "Enabled");
m_current_view = COVERFLOW_CHANNEL;
LoadView();
}
}
else if(m_btnMgr.selected(m_mainBtnNext) || m_btnMgr.selected(m_mainBtnPrev))
{