mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-25 03:11:58 +01:00
-changed switch order to wii -> gc > channels > homebrew (issue 13)
This commit is contained in:
parent
1277fd0c6e
commit
abd7956bb8
@ -92,30 +92,30 @@ void CMenu::_showMain(void)
|
|||||||
|
|
||||||
switch(m_current_view)
|
switch(m_current_view)
|
||||||
{
|
{
|
||||||
case COVERFLOW_HOMEBREW:
|
case COVERFLOW_DML:
|
||||||
if( m_show_dml )
|
if(show_channel)
|
||||||
m_btnMgr.show(m_mainBtnDML);
|
m_btnMgr.show(m_mainBtnChannel);
|
||||||
|
else if(show_homebrew)
|
||||||
|
m_btnMgr.show(m_mainBtnHomebrew);
|
||||||
else
|
else
|
||||||
m_btnMgr.show(m_mainBtnUsb);
|
m_btnMgr.show(m_mainBtnUsb);
|
||||||
break;
|
break;
|
||||||
case COVERFLOW_CHANNEL:
|
case COVERFLOW_CHANNEL:
|
||||||
if(show_homebrew)
|
if(show_homebrew)
|
||||||
m_btnMgr.show(m_mainBtnHomebrew);
|
m_btnMgr.show(m_mainBtnHomebrew);
|
||||||
else if( m_show_dml )
|
|
||||||
m_btnMgr.show(m_mainBtnDML);
|
|
||||||
else
|
else
|
||||||
m_btnMgr.show(m_mainBtnUsb);
|
m_btnMgr.show(m_mainBtnUsb);
|
||||||
break;
|
break;
|
||||||
case COVERFLOW_DML:
|
case COVERFLOW_HOMEBREW:
|
||||||
m_btnMgr.show(m_mainBtnUsb);
|
m_btnMgr.show(m_mainBtnUsb);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (show_channel)
|
if(m_show_dml)
|
||||||
|
m_btnMgr.show(m_mainBtnDML);
|
||||||
|
else if (show_channel)
|
||||||
m_btnMgr.show(m_mainBtnChannel);
|
m_btnMgr.show(m_mainBtnChannel);
|
||||||
else if (show_homebrew && (parental_homebrew || !m_locked))
|
else if (show_homebrew && (parental_homebrew || !m_locked))
|
||||||
m_btnMgr.show(m_mainBtnHomebrew);
|
m_btnMgr.show(m_mainBtnHomebrew);
|
||||||
else if( m_show_dml )
|
|
||||||
m_btnMgr.show(m_mainBtnDML);
|
|
||||||
else
|
else
|
||||||
m_btnMgr.show(m_mainBtnUsb);
|
m_btnMgr.show(m_mainBtnUsb);
|
||||||
break;
|
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))
|
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)
|
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 ));
|
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_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;
|
|
||||||
else if (m_current_view == COVERFLOW_DML)
|
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_current_view = COVERFLOW_USB;
|
||||||
|
|
||||||
m_category = m_cat.getInt(_domainFromView(), "category", 0);
|
m_category = m_cat.getInt(_domainFromView(), "category", 0);
|
||||||
@ -632,30 +632,30 @@ int CMenu::main(void)
|
|||||||
{
|
{
|
||||||
switch(m_current_view)
|
switch(m_current_view)
|
||||||
{
|
{
|
||||||
case COVERFLOW_HOMEBREW:
|
case COVERFLOW_DML:
|
||||||
if( m_show_dml )
|
if(show_channel)
|
||||||
m_btnMgr.show(m_mainBtnDML);
|
m_btnMgr.show(m_mainBtnChannel);
|
||||||
|
else if(show_homebrew)
|
||||||
|
m_btnMgr.show(m_mainBtnHomebrew);
|
||||||
else
|
else
|
||||||
m_btnMgr.show(m_mainBtnUsb);
|
m_btnMgr.show(m_mainBtnUsb);
|
||||||
break;
|
break;
|
||||||
case COVERFLOW_CHANNEL:
|
case COVERFLOW_CHANNEL:
|
||||||
if (show_homebrew && (parental_homebrew || !m_locked))
|
if(show_homebrew)
|
||||||
m_btnMgr.show(m_mainBtnHomebrew);
|
m_btnMgr.show(m_mainBtnHomebrew);
|
||||||
else if( m_show_dml )
|
|
||||||
m_btnMgr.show(m_mainBtnDML);
|
|
||||||
else
|
else
|
||||||
m_btnMgr.show(m_mainBtnUsb);
|
m_btnMgr.show(m_mainBtnUsb);
|
||||||
break;
|
break;
|
||||||
case COVERFLOW_DML:
|
case COVERFLOW_HOMEBREW:
|
||||||
m_btnMgr.show(m_mainBtnUsb);
|
m_btnMgr.show(m_mainBtnUsb);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (show_channel)
|
if(m_show_dml)
|
||||||
|
m_btnMgr.show(m_mainBtnDML);
|
||||||
|
else if (show_channel)
|
||||||
m_btnMgr.show(m_mainBtnChannel);
|
m_btnMgr.show(m_mainBtnChannel);
|
||||||
else if (show_homebrew && (parental_homebrew || !m_locked))
|
else if (show_homebrew && (parental_homebrew || !m_locked))
|
||||||
m_btnMgr.show(m_mainBtnHomebrew);
|
m_btnMgr.show(m_mainBtnHomebrew);
|
||||||
else if( m_show_dml )
|
|
||||||
m_btnMgr.show(m_mainBtnDML);
|
|
||||||
else
|
else
|
||||||
m_btnMgr.show(m_mainBtnUsb);
|
m_btnMgr.show(m_mainBtnUsb);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user