| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- using Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.SystemAppletProxy;
- using Ryujinx.HLE.HOS.Services.Am.AppletOE.ApplicationProxyService.ApplicationProxy;
- namespace Ryujinx.HLE.HOS.Services.Am.AppletOE.ApplicationProxyService
- {
- class IApplicationProxy : IpcService
- {
- private readonly ulong _pid;
- public IApplicationProxy(ulong pid)
- {
- _pid = pid;
- }
- [CommandHipc(0)]
- // GetCommonStateGetter() -> object<nn::am::service::ICommonStateGetter>
- public ResultCode GetCommonStateGetter(ServiceCtx context)
- {
- MakeObject(context, new ICommonStateGetter(context));
- return ResultCode.Success;
- }
- [CommandHipc(1)]
- // GetSelfController() -> object<nn::am::service::ISelfController>
- public ResultCode GetSelfController(ServiceCtx context)
- {
- MakeObject(context, new ISelfController(context, _pid));
- return ResultCode.Success;
- }
- [CommandHipc(2)]
- // GetWindowController() -> object<nn::am::service::IWindowController>
- public ResultCode GetWindowController(ServiceCtx context)
- {
- MakeObject(context, new IWindowController(_pid));
- return ResultCode.Success;
- }
- [CommandHipc(3)]
- // GetAudioController() -> object<nn::am::service::IAudioController>
- public ResultCode GetAudioController(ServiceCtx context)
- {
- MakeObject(context, new IAudioController());
- return ResultCode.Success;
- }
- [CommandHipc(4)]
- // GetDisplayController() -> object<nn::am::service::IDisplayController>
- public ResultCode GetDisplayController(ServiceCtx context)
- {
- MakeObject(context, new IDisplayController(context));
- return ResultCode.Success;
- }
- [CommandHipc(11)]
- // GetLibraryAppletCreator() -> object<nn::am::service::ILibraryAppletCreator>
- public ResultCode GetLibraryAppletCreator(ServiceCtx context)
- {
- MakeObject(context, new ILibraryAppletCreator());
- return ResultCode.Success;
- }
- [CommandHipc(20)]
- // GetApplicationFunctions() -> object<nn::am::service::IApplicationFunctions>
- public ResultCode GetApplicationFunctions(ServiceCtx context)
- {
- MakeObject(context, new IApplicationFunctions(context.Device.System));
- return ResultCode.Success;
- }
- [CommandHipc(1000)]
- // GetDebugFunctions() -> object<nn::am::service::IDebugFunctions>
- public ResultCode GetDebugFunctions(ServiceCtx context)
- {
- MakeObject(context, new IDebugFunctions());
- return ResultCode.Success;
- }
- }
- }
|