mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Android: Remove the unused ability to override the lang path
Attempt at crash fix in ReportScreen
This commit is contained in:
1 parent
aa2c9e2408
commit
8584f804e0
2 files changed
+1
-13
No files matched your search
+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();
|
||||
|
||||
@@ -180,9 +180,6 @@ ScreenRenderFlags ReportScreen::PreRender(ScreenRenderMode mode) {
|
||||
if (result == ScreenshotResult::Success) {
|
||||
// Redo the views already, now with a screenshot included.
|
||||
RecreateViews();
|
||||
} else {
|
||||
// Good news (?), the views are good as-is without a screenshot.
|
||||
screenshotFilename_.clear();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user