mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-25 19:31:58 +01:00
- Fix for source menu again. Added allplugins button back in. seems to be what was causing trouble for a lot of people
This commit is contained in:
parent
d2174a2bd1
commit
0a7c9bd78d
@ -126,7 +126,16 @@ void CMenu::_updateSourceBtns(void)
|
|||||||
domain = CHANNEL_DOMAIN;
|
domain = CHANNEL_DOMAIN;
|
||||||
else if(btnSource == "")
|
else if(btnSource == "")
|
||||||
continue;
|
continue;
|
||||||
else
|
else if(btnSource == "allplugins")
|
||||||
|
{
|
||||||
|
domain = PLUGIN_DOMAIN;
|
||||||
|
bool EnableAll = m_plugin.GetEnabledPlugins(m_cfg).size();
|
||||||
|
if(EnableAll)
|
||||||
|
ImgName = m_source.getString(fmt("BUTTON_%i", i + j),"image_s", "").c_str();
|
||||||
|
else
|
||||||
|
ImgName = m_source.getString(fmt("BUTTON_%i", i + j),"image", "").c_str();
|
||||||
|
}
|
||||||
|
else if(btnSource == "plugin")
|
||||||
{
|
{
|
||||||
domain = PLUGIN_DOMAIN;
|
domain = PLUGIN_DOMAIN;
|
||||||
if(m_cfg.getBool(domain, "source", false))
|
if(m_cfg.getBool(domain, "source", false))
|
||||||
@ -141,6 +150,8 @@ void CMenu::_updateSourceBtns(void)
|
|||||||
else
|
else
|
||||||
ImgName = m_source.getString(fmt("BUTTON_%i", i + j),"image", "").c_str();
|
ImgName = m_source.getString(fmt("BUTTON_%i", i + j),"image", "").c_str();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
domain = WII_DOMAIN;
|
||||||
if(domain != PLUGIN_DOMAIN)
|
if(domain != PLUGIN_DOMAIN)
|
||||||
{
|
{
|
||||||
if(m_cfg.getBool(domain, "source", false))
|
if(m_cfg.getBool(domain, "source", false))
|
||||||
@ -371,7 +382,7 @@ bool CMenu::_Source()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*if (source == "allplugins")
|
if (source == "allplugins")
|
||||||
{
|
{
|
||||||
if (!show_emu) _showSourceNotice();
|
if (!show_emu) _showSourceNotice();
|
||||||
else
|
else
|
||||||
@ -385,7 +396,7 @@ bool CMenu::_Source()
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
if (source == "plugin")
|
if (source == "plugin")
|
||||||
{
|
{
|
||||||
if(!show_emu)
|
if(!show_emu)
|
||||||
@ -509,6 +520,22 @@ bool CMenu::_Source()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (source == "allplugins")
|
||||||
|
{
|
||||||
|
if (!show_emu) _showSourceNotice();
|
||||||
|
else
|
||||||
|
{
|
||||||
|
imgSelected = true;
|
||||||
|
bool EnableAll = m_plugin.GetEnabledPlugins(m_cfg).size();
|
||||||
|
for(u8 j = 0; m_plugin.PluginExist(j); j++)
|
||||||
|
m_plugin.SetEnablePlugin(m_cfg, j, EnableAll ? 2 : 1);
|
||||||
|
if(EnableAll)
|
||||||
|
m_cfg.setBool(PLUGIN_DOMAIN, "source", true);
|
||||||
|
else
|
||||||
|
m_cfg.setBool(PLUGIN_DOMAIN, "source", false);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (source == "plugin")
|
if (source == "plugin")
|
||||||
{
|
{
|
||||||
if(!show_emu)
|
if(!show_emu)
|
||||||
|
Loading…
Reference in New Issue
Block a user