1
0
Fork 0

cfg: Fix auto-region detecting when the launched title has no regions. (#7218)

This commit is contained in:
Steveice10 2023-11-29 12:36:18 -08:00 committed by GitHub
parent 9da78f6126
commit 0ed909e782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -661,6 +661,10 @@ void Module::UpdatePreferredRegionCode() {
}
const auto preferred_regions = system.GetAppLoader().GetPreferredRegions();
if (preferred_regions.empty()) {
return;
}
const auto current_language = GetRawSystemLanguage();
const auto [region, adjusted_language] =
AdjustLanguageInfoBlock(preferred_regions, current_language);