From 139a93040741ec78a4ee13035eab1b1b705bdcf8 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com> Date: Sun, 15 Jan 2023 16:16:24 -0500 Subject: Implement missing service calls in `pm` (#4210) * Implement `GetTitleId` Fixes #2516 * Null check + Proper result code * Better comment * Implement `GetApplicationProcessId` * Add TODOs * Update Ryujinx.HLE/HOS/Services/Pm/IInformationInterface.cs Co-authored-by: Ac_K * Update Ryujinx.HLE/HOS/Services/Pm/IDebugMonitorInterface.cs Co-authored-by: Ac_K * Remove new function from KernelStatic Co-authored-by: Ac_K --- Ryujinx.HLE/HOS/Services/Pm/ResultCode.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Ryujinx.HLE/HOS/Services/Pm/ResultCode.cs (limited to 'Ryujinx.HLE/HOS/Services/Pm/ResultCode.cs') diff --git a/Ryujinx.HLE/HOS/Services/Pm/ResultCode.cs b/Ryujinx.HLE/HOS/Services/Pm/ResultCode.cs new file mode 100644 index 00000000..92b5925e --- /dev/null +++ b/Ryujinx.HLE/HOS/Services/Pm/ResultCode.cs @@ -0,0 +1,17 @@ +namespace Ryujinx.HLE.HOS.Services.Pm +{ + enum ResultCode + { + ModuleId = 15, + ErrorCodeShift = 9, + + Success = 0, + + ProcessNotFound = (1 << ErrorCodeShift) | ModuleId, + AlreadyStarted = (2 << ErrorCodeShift) | ModuleId, + NotTerminated = (3 << ErrorCodeShift) | ModuleId, + DebugHookInUse = (4 << ErrorCodeShift) | ModuleId, + ApplicationRunning = (5 << ErrorCodeShift) | ModuleId, + InvalidSize = (6 << ErrorCodeShift) | ModuleId, + } +} \ No newline at end of file -- cgit v1.2.3