mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-23 19:59:16 +01:00
- removed m_source_cnt. its not used anymore.
This commit is contained in:
parent
a2c02143f5
commit
d5bfdedb19
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 4.4 MiB After Width: | Height: | Size: 4.4 MiB |
@ -2212,7 +2212,7 @@ void CMenu::_initCF(void)
|
||||
}
|
||||
|
||||
/*********************** sort coverflow list ***********************/
|
||||
CoverFlow.setSorting(m_source_cnt > 1 ? (Sorting)0 : (Sorting)m_cfg.getInt(_domainFromView(), "sort", 0));
|
||||
CoverFlow.setSorting((Sorting)m_cfg.getInt(_domainFromView(), "sort", 0));
|
||||
|
||||
/*********************** set box mode and small box mode **************************/
|
||||
if(!m_sourceflow)
|
||||
@ -2336,8 +2336,8 @@ void CMenu::_initCF(void)
|
||||
}
|
||||
else if(m_sourceflow && sm_numbers.size() > 0)
|
||||
sourceNumber = stoi(sm_numbers[sm_numbers.size() - 1]);
|
||||
else if(m_current_view == COVERFLOW_HOMEBREW || (m_source_cnt > 1 && NoGameID(m_cfg.getInt("MULTI", "current_item_type", TYPE_PLUGIN))))
|
||||
filename = m_cfg.getString(_domainFromView(), "current_item", "");
|
||||
else if(m_current_view == COVERFLOW_HOMEBREW)
|
||||
filename = m_cfg.getString(HOMEBREW_DOMAIN, "current_item", "");
|
||||
else
|
||||
ID = m_cfg.getString(_domainFromView(), "current_item", "");
|
||||
|
||||
@ -2765,8 +2765,6 @@ const char *CMenu::_domainFromView()
|
||||
{
|
||||
if(m_sourceflow)
|
||||
return SOURCEFLOW_DOMAIN;
|
||||
if(m_source_cnt > 1)
|
||||
return "MULTI";
|
||||
switch(m_current_view)
|
||||
{
|
||||
case COVERFLOW_CHANNEL:
|
||||
|
@ -63,7 +63,6 @@ public: // functions called from outside CMenu
|
||||
private:
|
||||
u8 m_prev_view;
|
||||
u8 m_current_view;
|
||||
u8 m_source_cnt;
|
||||
u8 enabledPluginsCount;
|
||||
u8 m_catStartPage;
|
||||
u8 m_max_categories;
|
||||
|
@ -65,8 +65,6 @@ void CMenu::_setCurrentItem(const dir_discHdr *hdr)
|
||||
else
|
||||
{
|
||||
m_cfg.setString(_domainFromView(), "current_item", fn_id);
|
||||
if(m_source_cnt > 1)
|
||||
m_cfg.setInt("MULTI", "current_item_type", hdr->type);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -149,53 +149,45 @@ void CMenu::_showCF(bool refreshList)
|
||||
if(m_gameList.empty())
|
||||
{
|
||||
cacheCovers = false;
|
||||
if(m_source_cnt > 1)
|
||||
switch(m_current_view)
|
||||
{
|
||||
Msg = _t("main1", L"Game list empty!");
|
||||
Pth = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
switch(m_current_view)
|
||||
{
|
||||
case COVERFLOW_WII:
|
||||
case COVERFLOW_WII:
|
||||
Msg = _t("main2", L"No games found in");
|
||||
Pth = sfmt(wii_games_dir, DeviceName[currentPartition]);
|
||||
break;
|
||||
case COVERFLOW_GAMECUBE:
|
||||
Msg = _t("main2", L"No games found in");
|
||||
Pth = sfmt(gc_games_dir, DeviceName[currentPartition]);
|
||||
break;
|
||||
case COVERFLOW_CHANNEL:
|
||||
Msg = _t("main3", L"No titles found in");
|
||||
Pth = sfmt("%s:/%s/%s", DeviceName[currentPartition], emu_nands_dir, m_cfg.getString(CHANNEL_DOMAIN, "current_emunand").c_str());
|
||||
break;
|
||||
case COVERFLOW_HOMEBREW:
|
||||
Msg = _t("main4", L"No apps found in");
|
||||
Pth = sfmt(HOMEBREW_DIR, DeviceName[currentPartition]);
|
||||
break;
|
||||
case COVERFLOW_PLUGIN:
|
||||
Pth = "";
|
||||
if(enabledPluginsCount == 0)
|
||||
Msg = _t("main6", L"No plugins selected.");
|
||||
else if(enabledPluginsCount > 1)
|
||||
Msg = _t("main5", L"No roms/items found.");
|
||||
else
|
||||
{
|
||||
Msg = _t("main2", L"No games found in");
|
||||
Pth = sfmt(wii_games_dir, DeviceName[currentPartition]);
|
||||
break;
|
||||
case COVERFLOW_GAMECUBE:
|
||||
Msg = _t("main2", L"No games found in");
|
||||
Pth = sfmt(gc_games_dir, DeviceName[currentPartition]);
|
||||
break;
|
||||
case COVERFLOW_CHANNEL:
|
||||
Msg = _t("main3", L"No titles found in");
|
||||
Pth = sfmt("%s:/%s/%s", DeviceName[currentPartition], emu_nands_dir, m_cfg.getString(CHANNEL_DOMAIN, "current_emunand").c_str());
|
||||
break;
|
||||
case COVERFLOW_HOMEBREW:
|
||||
Msg = _t("main4", L"No apps found in");
|
||||
Pth = sfmt(HOMEBREW_DIR, DeviceName[currentPartition]);
|
||||
break;
|
||||
case COVERFLOW_PLUGIN:
|
||||
Pth = "";
|
||||
if(enabledPluginsCount == 0)
|
||||
Msg = _t("main6", L"No plugins selected.");
|
||||
else if(enabledPluginsCount > 1)
|
||||
Msg = _t("main5", L"No roms/items found.");
|
||||
u8 i = 0;
|
||||
while(m_plugin.PluginExist(i) && !m_plugin.GetEnabledStatus(i)){ ++i; }
|
||||
int romsPartition = m_plugin.GetRomPartition(i);
|
||||
if(romsPartition < 0)
|
||||
romsPartition = m_cfg.getInt(PLUGIN_DOMAIN, "partition", 0);
|
||||
const char *romDir = m_plugin.GetRomDir(i);
|
||||
if(strstr(romDir, "scummvm.ini") != NULL && strchr(romDir, ':') != NULL)
|
||||
Pth = sfmt("%s", romDir);
|
||||
else
|
||||
{
|
||||
Msg = _t("main2", L"No games found in");
|
||||
u8 i = 0;
|
||||
while(m_plugin.PluginExist(i) && !m_plugin.GetEnabledStatus(i)){ ++i; }
|
||||
int romsPartition = m_plugin.GetRomPartition(i);
|
||||
if(romsPartition < 0)
|
||||
romsPartition = m_cfg.getInt(PLUGIN_DOMAIN, "partition", 0);
|
||||
const char *romDir = m_plugin.GetRomDir(i);
|
||||
if(strstr(romDir, "scummvm.ini") != NULL && strchr(romDir, ':') != NULL)
|
||||
Pth = sfmt("%s", romDir);
|
||||
else
|
||||
Pth = sfmt("%s:/%s", DeviceName[romsPartition], m_plugin.GetRomDir(i));
|
||||
}
|
||||
break;
|
||||
}
|
||||
Pth = sfmt("%s:/%s", DeviceName[romsPartition], m_plugin.GetRomDir(i));
|
||||
}
|
||||
break;
|
||||
}
|
||||
Msg.append(wstringEx(' ' + Pth));
|
||||
m_btnMgr.setText(m_mainLblMessage, Msg);
|
||||
@ -373,17 +365,6 @@ int CMenu::main(void)
|
||||
|
||||
m_prev_view = 0;
|
||||
m_current_view = m_cfg.getUInt("GENERAL", "sources", COVERFLOW_WII);
|
||||
m_source_cnt = 0;
|
||||
for(u8 i = 1; i < 32; i <<= 1)
|
||||
if(m_current_view & i)
|
||||
m_source_cnt++;
|
||||
|
||||
if(m_source_cnt == 0)
|
||||
{
|
||||
m_current_view = COVERFLOW_WII;
|
||||
m_cfg.setUInt("GENERAL", "sources", m_current_view);
|
||||
m_source_cnt++;
|
||||
}
|
||||
|
||||
m_catStartPage = m_cfg.getInt("GENERAL", "cat_startpage", 1);
|
||||
|
||||
@ -527,7 +508,7 @@ int CMenu::main(void)
|
||||
m_current_view = show_plugin ? COVERFLOW_PLUGIN : (show_homebrew ? COVERFLOW_HOMEBREW : COVERFLOW_WII);
|
||||
else if(m_current_view == COVERFLOW_PLUGIN)
|
||||
m_current_view = show_homebrew ? COVERFLOW_HOMEBREW : COVERFLOW_WII;
|
||||
else if(m_current_view == COVERFLOW_HOMEBREW || m_source_cnt > 1)
|
||||
else if(m_current_view == COVERFLOW_HOMEBREW)
|
||||
m_current_view = COVERFLOW_WII;
|
||||
if(m_use_source)
|
||||
{
|
||||
@ -535,7 +516,6 @@ int CMenu::main(void)
|
||||
sm_tiers_backup = SOURCE_FILENAME;
|
||||
_restoreSrcTiers();
|
||||
}
|
||||
m_source_cnt = 1;
|
||||
m_cfg.setUInt("GENERAL", "sources", m_current_view);
|
||||
m_catStartPage = 1;
|
||||
_getCustomBgTex();
|
||||
|
@ -184,7 +184,6 @@ void CMenu::_PluginSettings()
|
||||
if(m_refreshGameList && enabledPluginsCount > 0)
|
||||
{
|
||||
m_cfg.setUInt("GENERAL", "sources", m_current_view);
|
||||
m_source_cnt = 1;
|
||||
m_catStartPage = 1;
|
||||
m_cfg.setInt(CHANNEL_DOMAIN, "channels_type", channels_type);
|
||||
}
|
||||
|
@ -137,7 +137,6 @@ void CMenu::_sourceFlow()
|
||||
m_current_view = COVERFLOW_WII;
|
||||
m_sourceflow = false;
|
||||
m_cfg.setUInt("GENERAL", "sources", m_current_view);
|
||||
m_source_cnt = 1;
|
||||
_setSrcOptions();
|
||||
}
|
||||
|
||||
@ -608,7 +607,6 @@ bool CMenu::_Source()
|
||||
numbers.append(',' + sm_numbers[i]);
|
||||
m_cfg.setString(SOURCEFLOW_DOMAIN, "numbers", numbers);
|
||||
m_cfg.setUInt("GENERAL", "sources", m_current_view);
|
||||
m_source_cnt = 1;
|
||||
newSource = true;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user