mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-01-23 01:01:12 +01:00
- now when wiiflow's language is changed it will auto reload cache so game titles will also be changed.
This commit is contained in:
parent
1b95372276
commit
8d0436c177
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 3.3 MiB After Width: | Height: | Size: 3.3 MiB |
@ -339,8 +339,11 @@ bool CMenu::init()
|
||||
case CONF_LANG_KOREAN:
|
||||
defLang = "korean";
|
||||
break;
|
||||
case CONF_LANG_ENGLISH:
|
||||
defLang = "english";
|
||||
break;
|
||||
}
|
||||
if (CONF_GetArea() == CONF_AREA_BRA)
|
||||
if(CONF_GetArea() == CONF_AREA_BRA)
|
||||
defLang = "brazilian";
|
||||
|
||||
m_curLanguage = m_cfg.getString("GENERAL", "language", defLang);
|
||||
@ -1910,7 +1913,8 @@ void CMenu::_drawBg(void)
|
||||
|
||||
void CMenu::_updateText(void)
|
||||
{
|
||||
_textSource();
|
||||
if(m_use_source)
|
||||
_textSource();
|
||||
_textPluginSettings();
|
||||
_textCategorySettings();
|
||||
_textCheatSettings();
|
||||
|
@ -124,7 +124,7 @@ int CMenu::_configAdv(void)
|
||||
break;
|
||||
}
|
||||
}
|
||||
bool lang_changed = false;
|
||||
string prevLanguage = languages_available[available_pos];
|
||||
|
||||
_showConfigAdv();
|
||||
while(!m_exit)
|
||||
@ -161,7 +161,6 @@ int CMenu::_configAdv(void)
|
||||
}
|
||||
else
|
||||
m_cfg.setString("GENERAL", "language", m_curLanguage.c_str());
|
||||
lang_changed = true;
|
||||
_updateText();
|
||||
_showConfigAdv();
|
||||
}
|
||||
@ -175,8 +174,13 @@ int CMenu::_configAdv(void)
|
||||
}
|
||||
}
|
||||
_hideConfigAdv();
|
||||
if(lang_changed)
|
||||
if(m_curLanguage != prevLanguage)
|
||||
{
|
||||
m_cacheList.Init(m_settingsDir.c_str(), m_loc.getString(m_curLanguage, "gametdb_code", "EN").c_str());
|
||||
fsop_deleteFolder(m_listCacheDir.c_str());// delete cache lists folder and remake it so all lists update.
|
||||
fsop_MakeFolder(m_listCacheDir.c_str());
|
||||
m_refreshGameList = true;
|
||||
}
|
||||
|
||||
return change;
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ void CMenu::_showCF(bool refreshList)
|
||||
_cacheCovers();
|
||||
_stop_pThread();
|
||||
m_btnMgr.setText(m_wbfsLblDialog, _t("dlmsg14", L"Done."));
|
||||
u8 pause = 240;
|
||||
u8 pause = 150;
|
||||
while(!m_exit)
|
||||
{
|
||||
_mainLoopCommon();
|
||||
|
Loading…
x
Reference in New Issue
Block a user