summaryrefslogtreecommitdiff
path: root/src/core/hle/service/pm
diff options
context:
space:
mode:
authorGravatar Morph2021-11-20 19:39:26 -0500
committerGravatar Morph2021-11-20 19:39:26 -0500
commit40cd0bb97b3d6db6eba0e18fae6560c8e1b69794 (patch)
treea5d2be22d64810af335d65e8e2c5bdea2350fa35 /src/core/hle/service/pm
parentMerge pull request #7294 from vonchenplus/fix_image_update_error_when_width_t... (diff)
downloadyuzu-40cd0bb97b3d6db6eba0e18fae6560c8e1b69794.tar.gz
yuzu-40cd0bb97b3d6db6eba0e18fae6560c8e1b69794.tar.xz
yuzu-40cd0bb97b3d6db6eba0e18fae6560c8e1b69794.zip
service: pm: Rename title id to program id
Diffstat (limited to 'src/core/hle/service/pm')
-rw-r--r--src/core/hle/service/pm/pm.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/hle/service/pm/pm.cpp b/src/core/hle/service/pm/pm.cpp
index 88fc5b5cc..969300795 100644
--- a/src/core/hle/service/pm/pm.cpp
+++ b/src/core/hle/service/pm/pm.cpp
@@ -95,13 +95,13 @@ public:
95private: 95private:
96 void GetProcessId(Kernel::HLERequestContext& ctx) { 96 void GetProcessId(Kernel::HLERequestContext& ctx) {
97 IPC::RequestParser rp{ctx}; 97 IPC::RequestParser rp{ctx};
98 const auto title_id = rp.PopRaw<u64>(); 98 const auto program_id = rp.PopRaw<u64>();
99 99
100 LOG_DEBUG(Service_PM, "called, title_id={:016X}", title_id); 100 LOG_DEBUG(Service_PM, "called, program_id={:016X}", program_id);
101 101
102 const auto process = 102 const auto process =
103 SearchProcessList(kernel.GetProcessList(), [title_id](const auto& proc) { 103 SearchProcessList(kernel.GetProcessList(), [program_id](const auto& proc) {
104 return proc->GetProgramID() == title_id; 104 return proc->GetProgramID() == program_id;
105 }); 105 });
106 106
107 if (!process.has_value()) { 107 if (!process.has_value()) {
@@ -128,13 +128,13 @@ public:
128 explicit Info(Core::System& system_, const std::vector<Kernel::KProcess*>& process_list_) 128 explicit Info(Core::System& system_, const std::vector<Kernel::KProcess*>& process_list_)
129 : ServiceFramework{system_, "pm:info"}, process_list{process_list_} { 129 : ServiceFramework{system_, "pm:info"}, process_list{process_list_} {
130 static const FunctionInfo functions[] = { 130 static const FunctionInfo functions[] = {
131 {0, &Info::GetTitleId, "GetTitleId"}, 131 {0, &Info::GetProgramId, "GetProgramId"},
132 }; 132 };
133 RegisterHandlers(functions); 133 RegisterHandlers(functions);
134 } 134 }
135 135
136private: 136private:
137 void GetTitleId(Kernel::HLERequestContext& ctx) { 137 void GetProgramId(Kernel::HLERequestContext& ctx) {
138 IPC::RequestParser rp{ctx}; 138 IPC::RequestParser rp{ctx};
139 const auto process_id = rp.PopRaw<u64>(); 139 const auto process_id = rp.PopRaw<u64>();
140 140