summaryrefslogtreecommitdiff
path: root/src/core/hle/service/pctl
diff options
context:
space:
mode:
authorGravatar Morph2021-11-03 20:32:26 -0400
committerGravatar Morph2021-11-04 16:59:39 -0400
commita6e6a5ac388b0ef5cde2a1c70921548b9b7a2fe9 (patch)
tree857364fbaf70a8ced3d5472b74890f7402f26bf4 /src/core/hle/service/pctl
parentgeneral: Rename GetTitleID to GetProgramID (diff)
downloadyuzu-a6e6a5ac388b0ef5cde2a1c70921548b9b7a2fe9.tar.gz
yuzu-a6e6a5ac388b0ef5cde2a1c70921548b9b7a2fe9.tar.xz
yuzu-a6e6a5ac388b0ef5cde2a1c70921548b9b7a2fe9.zip
general: Get the current process program id directly from the system
This allows us to avoid including KProcess' header file in files that only need to get the current process' program id.
Diffstat (limited to 'src/core/hle/service/pctl')
-rw-r--r--src/core/hle/service/pctl/pctl_module.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/service/pctl/pctl_module.cpp b/src/core/hle/service/pctl/pctl_module.cpp
index 229dade31..be77975ff 100644
--- a/src/core/hle/service/pctl/pctl_module.cpp
+++ b/src/core/hle/service/pctl/pctl_module.cpp
@@ -7,7 +7,6 @@
7#include "core/file_sys/control_metadata.h" 7#include "core/file_sys/control_metadata.h"
8#include "core/file_sys/patch_manager.h" 8#include "core/file_sys/patch_manager.h"
9#include "core/hle/ipc_helpers.h" 9#include "core/hle/ipc_helpers.h"
10#include "core/hle/kernel/k_process.h"
11#include "core/hle/service/pctl/pctl.h" 10#include "core/hle/service/pctl/pctl.h"
12#include "core/hle/service/pctl/pctl_module.h" 11#include "core/hle/service/pctl/pctl_module.h"
13 12
@@ -189,7 +188,7 @@ private:
189 188
190 // TODO(ogniK): Recovery flag initialization for pctl:r 189 // TODO(ogniK): Recovery flag initialization for pctl:r
191 190
192 const auto tid = system.CurrentProcess()->GetProgramID(); 191 const auto tid = system.GetCurrentProcessProgramID();
193 if (tid != 0) { 192 if (tid != 0) {
194 const FileSys::PatchManager pm{tid, system.GetFileSystemController(), 193 const FileSys::PatchManager pm{tid, system.GetFileSystemController(),
195 system.GetContentProvider()}; 194 system.GetContentProvider()};