mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-24 04:09:15 +01:00
- Hopefully fixed source menu. working for me
This commit is contained in:
parent
95e4327ab6
commit
d2174a2bd1
@ -23,6 +23,7 @@ u8 numPlugins;
|
|||||||
u8 maxBtns = 71;
|
u8 maxBtns = 71;
|
||||||
string m_sourceDir;
|
string m_sourceDir;
|
||||||
Config m_source;
|
Config m_source;
|
||||||
|
vector<string> magicNums;
|
||||||
|
|
||||||
// Source menu
|
// Source menu
|
||||||
s16 m_sourceLblNotice;
|
s16 m_sourceLblNotice;
|
||||||
@ -123,12 +124,15 @@ void CMenu::_updateSourceBtns(void)
|
|||||||
domain = CHANNEL_DOMAIN;
|
domain = CHANNEL_DOMAIN;
|
||||||
else if(btnSource == "realnand")
|
else if(btnSource == "realnand")
|
||||||
domain = CHANNEL_DOMAIN;
|
domain = CHANNEL_DOMAIN;
|
||||||
|
else if(btnSource == "")
|
||||||
|
continue;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
domain = PLUGIN_DOMAIN;
|
domain = PLUGIN_DOMAIN;
|
||||||
if(m_cfg.getBool(domain, "source", false))
|
if(m_cfg.getBool(domain, "source", false))
|
||||||
{
|
{
|
||||||
vector<string> magicNums = m_source.getStrings(fmt("BUTTON_%i", i + j), "magic", ',');
|
magicNums.clear();
|
||||||
|
magicNums = m_source.getStrings(fmt("BUTTON_%i", i + j), "magic", ',');
|
||||||
if(m_cfg.getBool("PLUGIN", magicNums.at(0), false))
|
if(m_cfg.getBool("PLUGIN", magicNums.at(0), false))
|
||||||
ImgName = m_source.getString(fmt("BUTTON_%i", i + j),"image_s", "").c_str();
|
ImgName = m_source.getString(fmt("BUTTON_%i", i + j),"image_s", "").c_str();
|
||||||
else
|
else
|
||||||
@ -390,7 +394,8 @@ bool CMenu::_Source()
|
|||||||
{
|
{
|
||||||
m_current_view = COVERFLOW_PLUGIN;
|
m_current_view = COVERFLOW_PLUGIN;
|
||||||
imgSelected = true;
|
imgSelected = true;
|
||||||
vector<string> magicNums = m_source.getStrings(fmt("BUTTON_%i", i + j), "magic", ',');
|
magicNums.clear();
|
||||||
|
magicNums = m_source.getStrings(fmt("BUTTON_%i", i + j), "magic", ',');
|
||||||
if (magicNums.size() > 0)
|
if (magicNums.size() > 0)
|
||||||
{
|
{
|
||||||
for (u8 k = 0; k < numPlugins; ++k)
|
for (u8 k = 0; k < numPlugins; ++k)
|
||||||
@ -517,7 +522,8 @@ bool CMenu::_Source()
|
|||||||
for (u8 k = 0; k < numPlugins; ++k)
|
for (u8 k = 0; k < numPlugins; ++k)
|
||||||
m_plugin.SetEnablePlugin(m_cfg, k, 1);
|
m_plugin.SetEnablePlugin(m_cfg, k, 1);
|
||||||
}
|
}
|
||||||
vector<string> magicNums = m_source.getStrings(fmt("BUTTON_%i", i + j), "magic", ',');
|
magicNums.clear();
|
||||||
|
magicNums = m_source.getStrings(fmt("BUTTON_%i", i + j), "magic", ',');
|
||||||
if (magicNums.size() > 0)
|
if (magicNums.size() > 0)
|
||||||
{
|
{
|
||||||
for (vector<string>::iterator itr = magicNums.begin(); itr != magicNums.end(); itr++)
|
for (vector<string>::iterator itr = magicNums.begin(); itr != magicNums.end(); itr++)
|
||||||
|
Loading…
Reference in New Issue
Block a user