ISystemAppletProxy.cs 3.1 KB

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