aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Pm/IShellInterface.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Services/Pm/IShellInterface.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Services/Pm/IShellInterface.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Pm/IShellInterface.cs b/src/Ryujinx.HLE/HOS/Services/Pm/IShellInterface.cs
new file mode 100644
index 00000000..96202326
--- /dev/null
+++ b/src/Ryujinx.HLE/HOS/Services/Pm/IShellInterface.cs
@@ -0,0 +1,21 @@
+namespace Ryujinx.HLE.HOS.Services.Pm
+{
+ [Service("pm:shell")]
+ class IShellInterface : IpcService
+ {
+ public IShellInterface(ServiceCtx context) { }
+
+ [CommandCmif(6)]
+ // GetApplicationPid() -> u64
+ public ResultCode GetApplicationPid(ServiceCtx context)
+ {
+ // FIXME: This is wrong but needed to make hb loader works
+ // TODO: Change this when we will have a way to process via a PM like interface.
+ ulong pid = context.Process.Pid;
+
+ context.ResponseData.Write(pid);
+
+ return ResultCode.Success;
+ }
+ }
+}