mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-11 20:15:32 -05:00
Fix title definition loading
This commit is contained in:
15
src/cfg.cpp
15
src/cfg.cpp
@@ -273,6 +273,20 @@ static void loadTitleDefsLegacy()
|
||||
}
|
||||
}
|
||||
|
||||
//Oops
|
||||
static void loadTitleDefs()
|
||||
{
|
||||
if(fs::fileExists(titleDefPath))
|
||||
{
|
||||
fs::dataFile getPaths(titleDefPath);
|
||||
while(getPaths.readNextLine(true))
|
||||
{
|
||||
uint64_t tid = strtoul(getPaths.getName().c_str(), NULL, 16);
|
||||
pathDefs[tid] = getPaths.getNextValueStr();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void cfg::loadConfig()
|
||||
{
|
||||
loadWorkDirLegacy();
|
||||
@@ -280,6 +294,7 @@ void cfg::loadConfig()
|
||||
loadFavoritesLegacy();
|
||||
loadBlacklistLegacy();
|
||||
loadTitleDefsLegacy();
|
||||
loadTitleDefs();
|
||||
|
||||
if(fs::fileExists(cfgPath))
|
||||
{
|
||||
|
||||
@@ -182,7 +182,11 @@ void ui::loadTrans()
|
||||
file = "romfs:/lang/";
|
||||
switch(data::sysLang)
|
||||
{
|
||||
//I removed these for now. Old translation files are incompatible and will cause crashes.
|
||||
case SetLanguage_ZHTW:
|
||||
case SetLanguage_ZHHANT:
|
||||
file += "zh-TW.txt";
|
||||
break;
|
||||
|
||||
default:
|
||||
ui::initStrings();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user