IApplicationProxy.cs 2.6 KB

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