summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-11-22 07:12:34 +0100
committerGitHub <noreply@github.com>2020-11-22 07:12:34 +0100
commit3a85bc1e771b8c11728b6535710e21dc092b6732 (patch)
treebe80bf80153857db46a24de4b34a7d8bbac7a0ae /src/core/hle/service/am
parentMerge pull request #4954 from lioncash/compare (diff)
parentpatch_manager: Remove usages of the global system instance (diff)
downloadyuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.tar
yuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.tar.gz
yuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.tar.bz2
yuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.tar.lz
yuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.tar.xz
yuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.tar.zst
yuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.zip
Diffstat (limited to 'src/core/hle/service/am')
-rw-r--r--src/core/hle/service/am/am.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index eb097738a..63421b963 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -1381,13 +1381,16 @@ void IApplicationFunctions::GetDisplayVersion(Kernel::HLERequestContext& ctx) {
const auto res = [this] {
const auto title_id = system.CurrentProcess()->GetTitleID();
- FileSys::PatchManager pm{title_id};
+ const FileSys::PatchManager pm{title_id, system.GetFileSystemController(),
+ system.GetContentProvider()};
auto res = pm.GetControlMetadata();
if (res.first != nullptr) {
return res;
}
- FileSys::PatchManager pm_update{FileSys::GetUpdateTitleID(title_id)};
+ const FileSys::PatchManager pm_update{FileSys::GetUpdateTitleID(title_id),
+ system.GetFileSystemController(),
+ system.GetContentProvider()};
return pm_update.GetControlMetadata();
}();
@@ -1415,13 +1418,16 @@ void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) {
const auto res = [this] {
const auto title_id = system.CurrentProcess()->GetTitleID();
- FileSys::PatchManager pm{title_id};
+ const FileSys::PatchManager pm{title_id, system.GetFileSystemController(),
+ system.GetContentProvider()};
auto res = pm.GetControlMetadata();
if (res.first != nullptr) {
return res;
}
- FileSys::PatchManager pm_update{FileSys::GetUpdateTitleID(title_id)};
+ const FileSys::PatchManager pm_update{FileSys::GetUpdateTitleID(title_id),
+ system.GetFileSystemController(),
+ system.GetContentProvider()};
return pm_update.GetControlMetadata();
}();