Android: Remove the unused ability to override the lang path

Attempt at crash fix in ReportScreen
This commit is contained in:
Henrik Rydgård
2026-02-19 00:46:16 +01:00
parent aa2c9e2408
commit 8584f804e0
2 changed files with 1 additions and 13 deletions
+1 -10
View File
@@ -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();