summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorCrazyMax <mtabachenko@gmail.com>2020-07-08 18:45:06 +0200
committerCrazyMax <mtabachenko@gmail.com>2020-07-08 18:45:06 +0200
commitcf76769026ae417fa3822d499f6a55ef084ec2da (patch)
treeeb1d6774bba2ef7976f6471136307bead9a44df9 /src/core
parentMerge pull request #4243 from CrazyMax/display_version (diff)
downloadyuzu-cf76769026ae417fa3822d499f6a55ef084ec2da.tar
yuzu-cf76769026ae417fa3822d499f6a55ef084ec2da.tar.gz
yuzu-cf76769026ae417fa3822d499f6a55ef084ec2da.tar.bz2
yuzu-cf76769026ae417fa3822d499f6a55ef084ec2da.tar.lz
yuzu-cf76769026ae417fa3822d499f6a55ef084ec2da.tar.xz
yuzu-cf76769026ae417fa3822d499f6a55ef084ec2da.tar.zst
yuzu-cf76769026ae417fa3822d499f6a55ef084ec2da.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/am/am.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 24cfb370b..32fad35f3 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -1389,7 +1389,19 @@ void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) {
u32 supported_languages = 0;
FileSys::PatchManager pm{system.CurrentProcess()->GetTitleID()};
- const auto res = pm.GetControlMetadata();
+ const auto res = [this] {
+ const auto title_id = system.CurrentProcess()->GetTitleID();
+
+ FileSys::PatchManager pm{title_id};
+ auto res = pm.GetControlMetadata();
+ if (res.first != nullptr) {
+ return res;
+ }
+
+ FileSys::PatchManager pm_update{FileSys::GetUpdateTitleID(title_id)};
+ return pm_update.GetControlMetadata();
+ }();
+
if (res.first != nullptr) {
supported_languages = res.first->GetSupportedLanguages();
}