- added 'no games found in {roms folder path}' if wiiflow doesn't find any roms for a plugin. This will let you know where wiiflow and the plugin are looking for the roms.

This commit is contained in:
Fledge68 2020-04-12 18:24:26 -05:00
parent 04dbf6bfa9
commit d0e1dc8d45

View File

@ -170,12 +170,27 @@ void CMenu::_showCF(bool refreshList)
Pth = wstringEx(fmt(HOMEBREW_DIR, DeviceName[currentPartition]));
break;
case COVERFLOW_PLUGIN:
Pth = "";
m_plugin.GetEnabledPlugins(m_cfg, &enabledPluginsCount);
if(enabledPluginsCount == 0)
Msg = _t("main6", L"No plugins selected.");
else
else if(enabledPluginsCount > 1)
Msg = _t("main5", L"No roms/items found.");
Pth = "";
else
{
Msg = _t("main2", L"No games found in ");
for(u8 i = 0; m_plugin.PluginExist(i); ++i)
{
if(m_plugin.GetEnableStatus(m_cfg, m_plugin.getPluginMagic(i)))
{
int romsPartition = m_plugin.GetRomPartition(i);
if(romsPartition < 0)
romsPartition = m_cfg.getInt(PLUGIN_DOMAIN, "partition", 0);
Pth = wstringEx(fmt("%s:/%s", DeviceName[romsPartition], m_plugin.GetRomDir(i)));
break;
}
}
}
break;
}
}