More command line improvements

This commit is contained in:
Henrik Rydgård committed 2026-07-27 18:37:28 +02:00
1 parent 3139d7ccfe
commit 5ef736f6a7
8 files changed
+52 -46

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ std::string 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 (g_i18nrepo.IniExists(langRegion)) {
if (!langRegion.empty() && 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.