-changed switch order to wii -> gc > channels > homebrew (issue 13)

This commit is contained in:
fix94.1 2012-02-13 17:09:26 +00:00
parent 1277fd0c6e
commit abd7956bb8

View File

@ -92,30 +92,30 @@ void CMenu::_showMain(void)
switch(m_current_view)
{
case COVERFLOW_HOMEBREW:
if( m_show_dml )
m_btnMgr.show(m_mainBtnDML);
case COVERFLOW_DML:
if(show_channel)
m_btnMgr.show(m_mainBtnChannel);
else if(show_homebrew)
m_btnMgr.show(m_mainBtnHomebrew);
else
m_btnMgr.show(m_mainBtnUsb);
break;
case COVERFLOW_CHANNEL:
if(show_homebrew)
m_btnMgr.show(m_mainBtnHomebrew);
else if( m_show_dml )
m_btnMgr.show(m_mainBtnDML);
else
m_btnMgr.show(m_mainBtnUsb);
break;
case COVERFLOW_DML:
case COVERFLOW_HOMEBREW:
m_btnMgr.show(m_mainBtnUsb);
break;
default:
if (show_channel)
if(m_show_dml)
m_btnMgr.show(m_mainBtnDML);
else if (show_channel)
m_btnMgr.show(m_mainBtnChannel);
else if (show_homebrew && (parental_homebrew || !m_locked))
m_btnMgr.show(m_mainBtnHomebrew);
else if( m_show_dml )
m_btnMgr.show(m_mainBtnDML);
else
m_btnMgr.show(m_mainBtnUsb);
break;
@ -506,12 +506,12 @@ int CMenu::main(void)
else if (m_btnMgr.selected(m_mainBtnChannel) || m_btnMgr.selected(m_mainBtnUsb) || m_btnMgr.selected(m_mainBtnDML) || m_btnMgr.selected(m_mainBtnHomebrew))
{
if (m_current_view == COVERFLOW_USB)
m_current_view = show_channel ? COVERFLOW_CHANNEL : ((show_homebrew && (parental_homebrew || !m_locked)) ? COVERFLOW_HOMEBREW : ( m_show_dml ? COVERFLOW_DML : COVERFLOW_USB ));
else if (m_current_view == COVERFLOW_CHANNEL)
m_current_view = (show_homebrew && (parental_homebrew || !m_locked)) ? COVERFLOW_HOMEBREW : ( m_show_dml ? COVERFLOW_DML : COVERFLOW_USB );
else if (m_current_view == COVERFLOW_HOMEBREW)
m_current_view = m_show_dml ? COVERFLOW_DML : COVERFLOW_USB;
m_current_view = m_show_dml ? COVERFLOW_DML : (show_channel ? COVERFLOW_CHANNEL : ((show_homebrew && (parental_homebrew || !m_locked)) ? COVERFLOW_HOMEBREW : COVERFLOW_USB));
else if (m_current_view == COVERFLOW_DML)
m_current_view = show_channel ? COVERFLOW_CHANNEL : ((show_homebrew && (parental_homebrew || !m_locked)) ? COVERFLOW_HOMEBREW : COVERFLOW_USB);
else if (m_current_view == COVERFLOW_CHANNEL)
m_current_view = (show_homebrew && (parental_homebrew || !m_locked)) ? COVERFLOW_HOMEBREW : COVERFLOW_USB;
else if (m_current_view == COVERFLOW_HOMEBREW)
m_current_view = COVERFLOW_USB;
m_category = m_cat.getInt(_domainFromView(), "category", 0);
@ -632,30 +632,30 @@ int CMenu::main(void)
{
switch(m_current_view)
{
case COVERFLOW_HOMEBREW:
if( m_show_dml )
m_btnMgr.show(m_mainBtnDML);
case COVERFLOW_DML:
if(show_channel)
m_btnMgr.show(m_mainBtnChannel);
else if(show_homebrew)
m_btnMgr.show(m_mainBtnHomebrew);
else
m_btnMgr.show(m_mainBtnUsb);
break;
case COVERFLOW_CHANNEL:
if (show_homebrew && (parental_homebrew || !m_locked))
if(show_homebrew)
m_btnMgr.show(m_mainBtnHomebrew);
else if( m_show_dml )
m_btnMgr.show(m_mainBtnDML);
else
m_btnMgr.show(m_mainBtnUsb);
break;
case COVERFLOW_DML:
case COVERFLOW_HOMEBREW:
m_btnMgr.show(m_mainBtnUsb);
break;
default:
if (show_channel)
if(m_show_dml)
m_btnMgr.show(m_mainBtnDML);
else if (show_channel)
m_btnMgr.show(m_mainBtnChannel);
else if (show_homebrew && (parental_homebrew || !m_locked))
m_btnMgr.show(m_mainBtnHomebrew);
else if( m_show_dml )
m_btnMgr.show(m_mainBtnDML);
else
m_btnMgr.show(m_mainBtnUsb);
break;