mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-01 16:05:07 +01:00
cfg: Fix auto-region detecting when the launched title has no regions. (#7218)
This commit is contained in:
parent
9da78f6126
commit
0ed909e782
@ -661,6 +661,10 @@ void Module::UpdatePreferredRegionCode() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const auto preferred_regions = system.GetAppLoader().GetPreferredRegions();
|
const auto preferred_regions = system.GetAppLoader().GetPreferredRegions();
|
||||||
|
if (preferred_regions.empty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const auto current_language = GetRawSystemLanguage();
|
const auto current_language = GetRawSystemLanguage();
|
||||||
const auto [region, adjusted_language] =
|
const auto [region, adjusted_language] =
|
||||||
AdjustLanguageInfoBlock(preferred_regions, current_language);
|
AdjustLanguageInfoBlock(preferred_regions, current_language);
|
||||||
|
Loading…
Reference in New Issue
Block a user