summaryrefslogtreecommitdiff
path: root/src/core/hle/service/aoc
diff options
context:
space:
mode:
authorGravatar Lioncash2020-11-18 07:53:10 -0500
committerGravatar Lioncash2020-11-18 09:36:48 -0500
commit6f8a06bac58790d20dae3c1adb4de3b441f07b30 (patch)
treeef5e2942aa0aacbebb683da91ee6d4bd19ec15e9 /src/core/hle/service/aoc
parentMerge pull request #4866 from Morph1984/mjolnir-p3-prod (diff)
downloadyuzu-6f8a06bac58790d20dae3c1adb4de3b441f07b30.tar.gz
yuzu-6f8a06bac58790d20dae3c1adb4de3b441f07b30.tar.xz
yuzu-6f8a06bac58790d20dae3c1adb4de3b441f07b30.zip
patch_manager: Remove usages of the global system instance
With this, only 19 usages of the global system instance remain within the core library. We're almost there.
Diffstat (limited to 'src/core/hle/service/aoc')
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp
index e58b2c518..173b36da4 100644
--- a/src/core/hle/service/aoc/aoc_u.cpp
+++ b/src/core/hle/service/aoc/aoc_u.cpp
@@ -164,7 +164,8 @@ void AOC_U::GetAddOnContentBaseId(Kernel::HLERequestContext& ctx) {
164 rb.Push(RESULT_SUCCESS); 164 rb.Push(RESULT_SUCCESS);
165 165
166 const auto title_id = system.CurrentProcess()->GetTitleID(); 166 const auto title_id = system.CurrentProcess()->GetTitleID();
167 FileSys::PatchManager pm{title_id}; 167 const FileSys::PatchManager pm{title_id, system.GetFileSystemController(),
168 system.GetContentProvider()};
168 169
169 const auto res = pm.GetControlMetadata(); 170 const auto res = pm.GetControlMetadata();
170 if (res.first == nullptr) { 171 if (res.first == nullptr) {