2019-09-19 02:45:11 +02:00
|
|
|
using Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.SystemAppletProxy;
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService
|
2018-04-21 21:30:06 +02:00
|
|
|
{
|
|
|
|
class ISystemAppletProxy : IpcService
|
|
|
|
{
|
2022-02-09 21:18:07 +01:00
|
|
|
private readonly ulong _pid;
|
2020-12-02 00:23:43 +01:00
|
|
|
|
2022-02-09 21:18:07 +01:00
|
|
|
public ISystemAppletProxy(ulong pid)
|
2020-12-02 00:23:43 +01:00
|
|
|
{
|
|
|
|
_pid = pid;
|
|
|
|
}
|
2018-04-21 21:30:06 +02:00
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(0)]
|
2019-07-12 03:13:43 +02:00
|
|
|
// GetCommonStateGetter() -> object<nn::am::service::ICommonStateGetter>
|
2019-07-14 21:04:38 +02:00
|
|
|
public ResultCode GetCommonStateGetter(ServiceCtx context)
|
2018-04-21 21:30:06 +02:00
|
|
|
{
|
2020-11-08 21:00:54 +01:00
|
|
|
MakeObject(context, new ICommonStateGetter(context));
|
2018-04-21 21:30:06 +02:00
|
|
|
|
2019-07-14 21:04:38 +02:00
|
|
|
return ResultCode.Success;
|
2018-04-21 21:30:06 +02:00
|
|
|
}
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(1)]
|
2019-07-12 03:13:43 +02:00
|
|
|
// GetSelfController() -> object<nn::am::service::ISelfController>
|
2019-07-14 21:04:38 +02:00
|
|
|
public ResultCode GetSelfController(ServiceCtx context)
|
2018-04-21 21:30:06 +02:00
|
|
|
{
|
2021-06-28 20:54:45 +02:00
|
|
|
MakeObject(context, new ISelfController(context, _pid));
|
2018-04-21 21:30:06 +02:00
|
|
|
|
2019-07-14 21:04:38 +02:00
|
|
|
return ResultCode.Success;
|
2018-04-21 21:30:06 +02:00
|
|
|
}
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(2)]
|
2019-07-12 03:13:43 +02:00
|
|
|
// GetWindowController() -> object<nn::am::service::IWindowController>
|
2019-07-14 21:04:38 +02:00
|
|
|
public ResultCode GetWindowController(ServiceCtx context)
|
2018-04-21 21:30:06 +02:00
|
|
|
{
|
2020-12-02 00:23:43 +01:00
|
|
|
MakeObject(context, new IWindowController(_pid));
|
2018-04-21 21:30:06 +02:00
|
|
|
|
2019-07-14 21:04:38 +02:00
|
|
|
return ResultCode.Success;
|
2018-04-24 20:57:39 +02:00
|
|
|
}
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(3)]
|
2019-07-12 03:13:43 +02:00
|
|
|
// GetAudioController() -> object<nn::am::service::IAudioController>
|
2019-07-14 21:04:38 +02:00
|
|
|
public ResultCode GetAudioController(ServiceCtx context)
|
2018-04-21 21:30:06 +02:00
|
|
|
{
|
2018-12-06 12:16:24 +01:00
|
|
|
MakeObject(context, new IAudioController());
|
2018-04-21 21:30:06 +02:00
|
|
|
|
2019-07-14 21:04:38 +02:00
|
|
|
return ResultCode.Success;
|
2018-04-21 21:30:06 +02:00
|
|
|
}
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(4)]
|
2019-07-12 03:13:43 +02:00
|
|
|
// GetDisplayController() -> object<nn::am::service::IDisplayController>
|
2019-07-14 21:04:38 +02:00
|
|
|
public ResultCode GetDisplayController(ServiceCtx context)
|
2018-04-21 21:30:06 +02:00
|
|
|
{
|
2021-06-28 20:54:45 +02:00
|
|
|
MakeObject(context, new IDisplayController(context));
|
2018-04-21 21:30:06 +02:00
|
|
|
|
2019-07-14 21:04:38 +02:00
|
|
|
return ResultCode.Success;
|
2018-04-21 21:30:06 +02:00
|
|
|
}
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(11)]
|
2019-07-12 03:13:43 +02:00
|
|
|
// GetLibraryAppletCreator() -> object<nn::am::service::ILibraryAppletCreator>
|
2019-07-14 21:04:38 +02:00
|
|
|
public ResultCode GetLibraryAppletCreator(ServiceCtx context)
|
2018-04-21 21:30:06 +02:00
|
|
|
{
|
2018-12-06 12:16:24 +01:00
|
|
|
MakeObject(context, new ILibraryAppletCreator());
|
2018-04-21 21:30:06 +02:00
|
|
|
|
2019-07-14 21:04:38 +02:00
|
|
|
return ResultCode.Success;
|
2018-04-21 21:30:06 +02:00
|
|
|
}
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(20)]
|
2019-07-12 03:13:43 +02:00
|
|
|
// GetHomeMenuFunctions() -> object<nn::am::service::IHomeMenuFunctions>
|
2019-07-14 21:04:38 +02:00
|
|
|
public ResultCode GetHomeMenuFunctions(ServiceCtx context)
|
2018-04-21 21:30:06 +02:00
|
|
|
{
|
2018-12-06 12:16:24 +01:00
|
|
|
MakeObject(context, new IHomeMenuFunctions(context.Device.System));
|
2018-04-21 21:30:06 +02:00
|
|
|
|
2019-07-14 21:04:38 +02:00
|
|
|
return ResultCode.Success;
|
2018-04-21 21:30:06 +02:00
|
|
|
}
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(21)]
|
2019-07-12 03:13:43 +02:00
|
|
|
// GetGlobalStateController() -> object<nn::am::service::IGlobalStateController>
|
2019-07-14 21:04:38 +02:00
|
|
|
public ResultCode GetGlobalStateController(ServiceCtx context)
|
2018-04-21 21:30:06 +02:00
|
|
|
{
|
2018-12-06 12:16:24 +01:00
|
|
|
MakeObject(context, new IGlobalStateController());
|
2018-04-21 21:30:06 +02:00
|
|
|
|
2019-07-14 21:04:38 +02:00
|
|
|
return ResultCode.Success;
|
2018-04-21 21:30:06 +02:00
|
|
|
}
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(22)]
|
2019-07-12 03:13:43 +02:00
|
|
|
// GetApplicationCreator() -> object<nn::am::service::IApplicationCreator>
|
2019-07-14 21:04:38 +02:00
|
|
|
public ResultCode GetApplicationCreator(ServiceCtx context)
|
2018-04-21 21:30:06 +02:00
|
|
|
{
|
2018-12-06 12:16:24 +01:00
|
|
|
MakeObject(context, new IApplicationCreator());
|
2018-04-21 21:30:06 +02:00
|
|
|
|
2019-07-14 21:04:38 +02:00
|
|
|
return ResultCode.Success;
|
2018-04-21 21:30:06 +02:00
|
|
|
}
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(1000)]
|
2019-07-12 03:13:43 +02:00
|
|
|
// GetDebugFunctions() -> object<nn::am::service::IDebugFunctions>
|
2019-07-14 21:04:38 +02:00
|
|
|
public ResultCode GetDebugFunctions(ServiceCtx context)
|
2018-04-21 21:30:06 +02:00
|
|
|
{
|
2018-12-06 12:16:24 +01:00
|
|
|
MakeObject(context, new IDebugFunctions());
|
2018-04-21 21:30:06 +02:00
|
|
|
|
2019-07-14 21:04:38 +02:00
|
|
|
return ResultCode.Success;
|
2018-04-21 21:30:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|