Restore the shared_ptrs

This commit is contained in:
Henrik Rydgård committed 2023-04-07 10:35:01 +02:00
1 parent 87b5a0b107
commit 12bd0ed26d
7 files changed
+81 -86

No files matched your search

+1 -1
View File
@@ -432,7 +432,7 @@ const char *DefaultLangRegion() {
// Unfortunate default. There's no need to use bFirstRun, since this is only a default.
static std::string defaultLangRegion = "en_US";
std::string langRegion = System_GetProperty(SYSPROP_LANGREGION);
if (i18nrepo.IniExists(langRegion)) {
if (g_i18nrepo.IniExists(langRegion)) {
defaultLangRegion = langRegion;
} else if (langRegion.length() >= 3) {
// Don't give up. Let's try a fuzzy match - so nl_BE can match nl_NL.