mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-25 03:11:58 +01:00
* Placed initialization of cache behind initialization of language.
This commit is contained in:
parent
a8e1913895
commit
016f965af0
@ -51,9 +51,9 @@ void CachedList<T>::Load(string path, string containing) /* Load All
|
|||||||
fclose(file);
|
fclose(file);
|
||||||
remove(path.c_str());
|
remove(path.c_str());
|
||||||
|
|
||||||
|
m_lastLanguage = m_curLanguage;
|
||||||
m_loaded = true;
|
m_loaded = true;
|
||||||
m_update = false;
|
m_update = false;
|
||||||
m_lastLanguage = m_curLanguage;
|
|
||||||
|
|
||||||
if(!music && pathlist.size() > 0)
|
if(!music && pathlist.size() > 0)
|
||||||
{
|
{
|
||||||
@ -62,12 +62,11 @@ void CachedList<T>::Load(string path, string containing) /* Load All
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
CCache<T>(*this, m_database, LOAD);
|
CCache<T>(*this, m_database, LOAD);
|
||||||
|
|
||||||
m_lastLanguage = m_curLanguage;
|
|
||||||
m_update = false;
|
|
||||||
m_loaded = true;
|
m_loaded = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
void CachedList<dir_discHdr>::LoadChannels(string path, u32 channelType) /* Load All */
|
void CachedList<dir_discHdr>::LoadChannels(string path, u32 channelType) /* Load All */
|
||||||
|
@ -264,8 +264,6 @@ void CMenu::init(void)
|
|||||||
makedir((char *)m_wipDir.c_str());
|
makedir((char *)m_wipDir.c_str());
|
||||||
makedir((char *)m_listCacheDir.c_str());
|
makedir((char *)m_listCacheDir.c_str());
|
||||||
|
|
||||||
m_gameList.Init(m_listCacheDir, m_settingsDir, m_loc.getString(m_curLanguage, "gametdb_code", "EN"));
|
|
||||||
|
|
||||||
// INI files
|
// INI files
|
||||||
m_cat.load(sfmt("%s/" CAT_FILENAME, m_settingsDir.c_str()).c_str());
|
m_cat.load(sfmt("%s/" CAT_FILENAME, m_settingsDir.c_str()).c_str());
|
||||||
string themeName = m_cfg.getString("GENERAL", "theme", "DEFAULT");
|
string themeName = m_cfg.getString("GENERAL", "theme", "DEFAULT");
|
||||||
@ -314,6 +312,8 @@ void CMenu::init(void)
|
|||||||
m_loc.load(sfmt("%s/%s.ini", m_languagesDir.c_str(), m_curLanguage.c_str()).c_str());
|
m_loc.load(sfmt("%s/%s.ini", m_languagesDir.c_str(), m_curLanguage.c_str()).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_gameList.Init(m_listCacheDir, m_settingsDir, m_loc.getString(m_curLanguage, "gametdb_code", "EN"));
|
||||||
|
|
||||||
m_aa = 3;
|
m_aa = 3;
|
||||||
|
|
||||||
CColor pShadowColor = m_theme.getColor("GENERAL", "pointer_shadow_color", CColor(0x3F000000));
|
CColor pShadowColor = m_theme.getColor("GENERAL", "pointer_shadow_color", CColor(0x3F000000));
|
||||||
|
Loading…
Reference in New Issue
Block a user