mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-08 13:43:27 +02:00
Android: Remove the unused ability to override the lang path
Attempt at crash fix in ReportScreen
This commit is contained in:
+1
-10
@@ -242,16 +242,7 @@ void PostLoadConfig() {
|
||||
if (g_Config.currentDirectory.empty()) {
|
||||
g_Config.currentDirectory = g_Config.defaultCurrentDirectory;
|
||||
}
|
||||
|
||||
// Allow the lang directory to be overridden for testing purposes (e.g. Android, where it's hard to
|
||||
// test new languages without recompiling the entire app, which is a hassle).
|
||||
const Path langOverridePath = GetSysDirectory(DIRECTORY_SYSTEM) / "lang";
|
||||
|
||||
// If we run into the unlikely case that "lang" is actually a file, just use the built-in translations.
|
||||
if (!File::Exists(langOverridePath) || !File::IsDirectory(langOverridePath))
|
||||
g_i18nrepo.LoadIni(g_Config.sLanguageIni);
|
||||
else
|
||||
g_i18nrepo.LoadIni(g_Config.sLanguageIni, langOverridePath);
|
||||
g_i18nrepo.LoadIni(g_Config.sLanguageIni);
|
||||
|
||||
#if !PPSSPP_PLATFORM(WINDOWS) || PPSSPP_PLATFORM(UWP)
|
||||
CreateSysDirectories();
|
||||
|
||||
Reference in New Issue
Block a user