IShellInterface.cs 619 B

123456789101112131415161718192021
  1. namespace Ryujinx.HLE.HOS.Services.Pm
  2. {
  3. [Service("pm:shell")]
  4. class IShellInterface : IpcService
  5. {
  6. public IShellInterface(ServiceCtx context) { }
  7. [CommandHipc(6)]
  8. // GetApplicationPid() -> u64
  9. public ResultCode GetApplicationPid(ServiceCtx context)
  10. {
  11. // FIXME: This is wrong but needed to make hb loader works
  12. // TODO: Change this when we will have a way to process via a PM like interface.
  13. long pid = context.Process.Pid;
  14. context.ResponseData.Write(pid);
  15. return ResultCode.Success;
  16. }
  17. }
  18. }