-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

@ -453,12 +453,24 @@ int CMenu::main(void)
} }
//Events to Switch off/on nand emu //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)) 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))
{
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)); m_cfg.setBool("NAND", "disable", !m_cfg.getBool("NAND", "disable", true));
gprintf("EmuNand is %s\n", m_cfg.getBool("NAND", "disable", true) ? "Disabled" : "Enabled"); gprintf("EmuNand is %s\n", m_cfg.getBool("NAND", "disable", true) ? "Disabled" : "Enabled");
m_current_view = COVERFLOW_CHANNEL; m_current_view = COVERFLOW_CHANNEL;
LoadView(); LoadView();
} }
}
else if(m_btnMgr.selected(m_mainBtnNext) || m_btnMgr.selected(m_mainBtnPrev)) else if(m_btnMgr.selected(m_mainBtnNext) || m_btnMgr.selected(m_mainBtnPrev))
{ {
const char *domain = _domainFromView(); const char *domain = _domainFromView();