ISystemAppletProxy.cs 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. namespace Ryujinx.HLE.HOS.Services.Am
  2. {
  3. class ISystemAppletProxy : IpcService
  4. {
  5. public ISystemAppletProxy() { }
  6. [Command(0)]
  7. // GetCommonStateGetter() -> object<nn::am::service::ICommonStateGetter>
  8. public ResultCode GetCommonStateGetter(ServiceCtx context)
  9. {
  10. MakeObject(context, new ICommonStateGetter(context.Device.System));
  11. return ResultCode.Success;
  12. }
  13. [Command(1)]
  14. // GetSelfController() -> object<nn::am::service::ISelfController>
  15. public ResultCode GetSelfController(ServiceCtx context)
  16. {
  17. MakeObject(context, new ISelfController(context.Device.System));
  18. return ResultCode.Success;
  19. }
  20. [Command(2)]
  21. // GetWindowController() -> object<nn::am::service::IWindowController>
  22. public ResultCode GetWindowController(ServiceCtx context)
  23. {
  24. MakeObject(context, new IWindowController());
  25. return ResultCode.Success;
  26. }
  27. [Command(3)]
  28. // GetAudioController() -> object<nn::am::service::IAudioController>
  29. public ResultCode GetAudioController(ServiceCtx context)
  30. {
  31. MakeObject(context, new IAudioController());
  32. return ResultCode.Success;
  33. }
  34. [Command(4)]
  35. // GetDisplayController() -> object<nn::am::service::IDisplayController>
  36. public ResultCode GetDisplayController(ServiceCtx context)
  37. {
  38. MakeObject(context, new IDisplayController());
  39. return ResultCode.Success;
  40. }
  41. [Command(11)]
  42. // GetLibraryAppletCreator() -> object<nn::am::service::ILibraryAppletCreator>
  43. public ResultCode GetLibraryAppletCreator(ServiceCtx context)
  44. {
  45. MakeObject(context, new ILibraryAppletCreator());
  46. return ResultCode.Success;
  47. }
  48. [Command(20)]
  49. // GetHomeMenuFunctions() -> object<nn::am::service::IHomeMenuFunctions>
  50. public ResultCode GetHomeMenuFunctions(ServiceCtx context)
  51. {
  52. MakeObject(context, new IHomeMenuFunctions(context.Device.System));
  53. return ResultCode.Success;
  54. }
  55. [Command(21)]
  56. // GetGlobalStateController() -> object<nn::am::service::IGlobalStateController>
  57. public ResultCode GetGlobalStateController(ServiceCtx context)
  58. {
  59. MakeObject(context, new IGlobalStateController());
  60. return ResultCode.Success;
  61. }
  62. [Command(22)]
  63. // GetApplicationCreator() -> object<nn::am::service::IApplicationCreator>
  64. public ResultCode GetApplicationCreator(ServiceCtx context)
  65. {
  66. MakeObject(context, new IApplicationCreator());
  67. return ResultCode.Success;
  68. }
  69. [Command(1000)]
  70. // GetDebugFunctions() -> object<nn::am::service::IDebugFunctions>
  71. public ResultCode GetDebugFunctions(ServiceCtx context)
  72. {
  73. MakeObject(context, new IDebugFunctions());
  74. return ResultCode.Success;
  75. }
  76. }
  77. }