|
|
@ -344,8 +344,7 @@ ResultVal<u8> IApplicationManagerInterface::GetApplicationDesiredLanguage(
|
|
|
|
// Try to find a valid language.
|
|
|
|
// Try to find a valid language.
|
|
|
|
for (const auto lang : *priority_list) {
|
|
|
|
for (const auto lang : *priority_list) {
|
|
|
|
const auto supported_flag = GetSupportedLanguageFlag(lang);
|
|
|
|
const auto supported_flag = GetSupportedLanguageFlag(lang);
|
|
|
|
if (supported_languages == 0 ||
|
|
|
|
if (supported_languages == 0 || (supported_languages & supported_flag) == supported_flag) {
|
|
|
|
(supported_languages & supported_flag) == supported_languages) {
|
|
|
|
|
|
|
|
return MakeResult(static_cast<u8>(lang));
|
|
|
|
return MakeResult(static_cast<u8>(lang));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|