mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-30 15:14:18 +01:00
* Pressing 'B' on 'config button' will now force a cache update for current view
* Added missing break;'s in UpdateCache function (menu.cpp) * Added missing stuff for DML update
This commit is contained in:
parent
ee9d70f9e2
commit
739d7892b3
@ -13,13 +13,15 @@ void CachedList<T>::Load(string path, string containing) /* Load All
|
||||
|
||||
bool update_games = false;
|
||||
bool update_homebrew = false;
|
||||
bool update_dml = false;
|
||||
if(!m_wbfsFS)
|
||||
{
|
||||
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_dml = strcasestr(path.c_str(), "games") != NULL && force_update[COVERFLOW_DML];
|
||||
|
||||
gprintf("update_games=%d update_homebrew=%d\n", update_games, update_homebrew);
|
||||
if(update_games || update_homebrew)
|
||||
if(update_games || update_homebrew || update_dml)
|
||||
remove(m_database.c_str());
|
||||
|
||||
struct stat filestat, cache;
|
||||
@ -100,6 +102,7 @@ void CachedList<dir_discHdr>::LoadChannels(string path, u32 channelType)
|
||||
|
||||
if(m_update)
|
||||
{
|
||||
gprintf("Updating\n");
|
||||
list.GetChannels(*this, m_settingsDir, channelType, m_channelLang);
|
||||
|
||||
m_loaded = true;
|
||||
|
@ -1794,10 +1794,13 @@ void CMenu::UpdateCache(u32 view)
|
||||
{
|
||||
case COVERFLOW_CHANNEL:
|
||||
domain = "NAND";
|
||||
break;
|
||||
case COVERFLOW_HOMEBREW:
|
||||
domain = "HOMEBREW";
|
||||
break;
|
||||
case COVERFLOW_DML:
|
||||
domain = "DML";
|
||||
break;
|
||||
default:
|
||||
domain = "GAMES";
|
||||
}
|
||||
|
@ -454,6 +454,13 @@ int CMenu::main(void)
|
||||
m_btnMgr.show(m_mainLblNotice);
|
||||
}
|
||||
}
|
||||
else if(m_btnMgr.selected(m_mainBtnConfig))
|
||||
{
|
||||
m_gameList.SetLanguage(m_loc.getString(m_curLanguage, "gametdb_code", "EN").c_str());
|
||||
|
||||
UpdateCache(m_current_view);
|
||||
LoadView();
|
||||
}
|
||||
}
|
||||
else if (done==0 && m_cat.getBool("GENERAL", "category_on_start", false))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user