- re-added b_on_mode to source menu option.

This commit is contained in:
fledge68 2012-09-02 13:12:37 +00:00
parent 5b955bbeed
commit b6b22aae27

View File

@ -480,7 +480,18 @@ 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(!neek2o()) if(m_cfg.getBool("GENERAL", "b_on_mode_to_source", false))
{
_hideMain();
if(!_Source()) //Different source selected
LoadView();
else
_showMain();
if(BTN_B_HELD)
bUsed = true;
continue;
}
else if(!neek2o())
{ {
bUsed = true; bUsed = true;
m_cfg.setBool("NAND", "disable", !m_cfg.getBool("NAND", "disable", true)); m_cfg.setBool("NAND", "disable", !m_cfg.getBool("NAND", "disable", true));