mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-24 19:01:56 +01:00
More cache overrides at startup, plus related debugging gprintfs
This commit is contained in:
parent
626fbfddeb
commit
85854d0bf2
@ -18,6 +18,7 @@ void CachedList<T>::Load(string path, string containing) /* Load All
|
|||||||
update_games = strcasestr(path.c_str(), "wbfs") != NULL && force_update[COVERFLOW_USB];
|
update_games = strcasestr(path.c_str(), "wbfs") != NULL && force_update[COVERFLOW_USB];
|
||||||
update_homebrew = strcasestr(path.c_str(), "apps") != NULL && force_update[COVERFLOW_HOMEBREW];
|
update_homebrew = strcasestr(path.c_str(), "apps") != NULL && force_update[COVERFLOW_HOMEBREW];
|
||||||
|
|
||||||
|
gprintf("update_games=%d update_homebrew=%d\n", update_games, update_homebrew);
|
||||||
if(update_games || update_homebrew)
|
if(update_games || update_homebrew)
|
||||||
remove(m_database.c_str());
|
remove(m_database.c_str());
|
||||||
|
|
||||||
|
@ -37,9 +37,15 @@ class CachedList : public safe_vector<T>
|
|||||||
{
|
{
|
||||||
if(view == COVERFLOW_MAX)
|
if(view == COVERFLOW_MAX)
|
||||||
for(u32 i = 0; i < COVERFLOW_MAX; i++)
|
for(u32 i = 0; i < COVERFLOW_MAX; i++)
|
||||||
|
{
|
||||||
force_update[i] = true;
|
force_update[i] = true;
|
||||||
|
gprintf("force_update[%d] = true\n", i);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
force_update[view] = true;
|
force_update[view] = true;
|
||||||
|
gprintf("force_update[%d] = true\n", view);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Load(string path, string containing);
|
void Load(string path, string containing);
|
||||||
@ -72,4 +78,4 @@ class CachedList : public safe_vector<T>
|
|||||||
string m_lastchannelLang;
|
string m_lastchannelLang;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1547,10 +1547,10 @@ bool CMenu::_loadList(void)
|
|||||||
m_cf.clear();
|
m_cf.clear();
|
||||||
m_gameList.clear();
|
m_gameList.clear();
|
||||||
|
|
||||||
gprintf("Loading items of ");
|
|
||||||
|
|
||||||
if(m_cfg.getBool(_domainFromView(), "update_cache")) m_gameList.Update(m_current_view);
|
if(m_cfg.getBool(_domainFromView(), "update_cache")) m_gameList.Update(m_current_view);
|
||||||
|
|
||||||
|
gprintf("Loading items of ");
|
||||||
|
|
||||||
bool retval;
|
bool retval;
|
||||||
switch(m_current_view)
|
switch(m_current_view)
|
||||||
{
|
{
|
||||||
@ -1779,6 +1779,7 @@ const char *CMenu::_domainFromView()
|
|||||||
|
|
||||||
void CMenu::UpdateCache(u32 view)
|
void CMenu::UpdateCache(u32 view)
|
||||||
{
|
{
|
||||||
|
gprintf("UpdateCache(%ld)\n", view);
|
||||||
if(view == COVERFLOW_MAX)
|
if(view == COVERFLOW_MAX)
|
||||||
{
|
{
|
||||||
UpdateCache(COVERFLOW_USB);
|
UpdateCache(COVERFLOW_USB);
|
||||||
|
@ -177,7 +177,10 @@ int CMenu::main(void)
|
|||||||
MusicPlayer::Instance()->Play();
|
MusicPlayer::Instance()->Play();
|
||||||
m_gameList.SetLanguage(m_loc.getString(m_curLanguage, "gametdb_code", "EN").c_str());
|
m_gameList.SetLanguage(m_loc.getString(m_curLanguage, "gametdb_code", "EN").c_str());
|
||||||
if (m_cfg.getBool("GENERAL", "update_cache", false))
|
if (m_cfg.getBool("GENERAL", "update_cache", false))
|
||||||
|
{
|
||||||
UpdateCache();
|
UpdateCache();
|
||||||
|
m_gameList.Update();
|
||||||
|
}
|
||||||
_loadList();
|
_loadList();
|
||||||
|
|
||||||
_showMain();
|
_showMain();
|
||||||
|
Loading…
Reference in New Issue
Block a user