2018-08-16 23:47:36 +00:00
|
|
|
namespace Ryujinx.HLE.HOS.Services.Am
|
2018-04-21 19:30:06 +00:00
|
|
|
{
|
|
|
|
class ISystemAppletProxy : IpcService
|
|
|
|
{
|
2019-07-12 01:13:43 +00:00
|
|
|
public ISystemAppletProxy() { }
|
2018-04-21 19:30:06 +00:00
|
|
|
|
2019-07-12 01:13:43 +00:00
|
|
|
[Command(0)]
|
|
|
|
// GetCommonStateGetter() -> object<nn::am::service::ICommonStateGetter>
|
2019-07-14 19:04:38 +00:00
|
|
|
public ResultCode GetCommonStateGetter(ServiceCtx context)
|
2018-04-21 19:30:06 +00:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
MakeObject(context, new ICommonStateGetter(context.Device.System));
|
2018-04-21 19:30:06 +00:00
|
|
|
|
2019-07-14 19:04:38 +00:00
|
|
|
return ResultCode.Success;
|
2018-04-21 19:30:06 +00:00
|
|
|
}
|
|
|
|
|
2019-07-12 01:13:43 +00:00
|
|
|
[Command(1)]
|
|
|
|
// GetSelfController() -> object<nn::am::service::ISelfController>
|
2019-07-14 19:04:38 +00:00
|
|
|
public ResultCode GetSelfController(ServiceCtx context)
|
2018-04-21 19:30:06 +00:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
MakeObject(context, new ISelfController(context.Device.System));
|
2018-04-21 19:30:06 +00:00
|
|
|
|
2019-07-14 19:04:38 +00:00
|
|
|
return ResultCode.Success;
|
2018-04-21 19:30:06 +00:00
|
|
|
}
|
|
|
|
|
2019-07-12 01:13:43 +00:00
|
|
|
[Command(2)]
|
|
|
|
// GetWindowController() -> object<nn::am::service::IWindowController>
|
2019-07-14 19:04:38 +00:00
|
|
|
public ResultCode GetWindowController(ServiceCtx context)
|
2018-04-21 19:30:06 +00:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
MakeObject(context, new IWindowController());
|
2018-04-21 19:30:06 +00:00
|
|
|
|
2019-07-14 19:04:38 +00:00
|
|
|
return ResultCode.Success;
|
2018-04-24 18:57:39 +00:00
|
|
|
}
|
|
|
|
|
2019-07-12 01:13:43 +00:00
|
|
|
[Command(3)]
|
|
|
|
// GetAudioController() -> object<nn::am::service::IAudioController>
|
2019-07-14 19:04:38 +00:00
|
|
|
public ResultCode GetAudioController(ServiceCtx context)
|
2018-04-21 19:30:06 +00:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
MakeObject(context, new IAudioController());
|
2018-04-21 19:30:06 +00:00
|
|
|
|
2019-07-14 19:04:38 +00:00
|
|
|
return ResultCode.Success;
|
2018-04-21 19:30:06 +00:00
|
|
|
}
|
|
|
|
|
2019-07-12 01:13:43 +00:00
|
|
|
[Command(4)]
|
|
|
|
// GetDisplayController() -> object<nn::am::service::IDisplayController>
|
2019-07-14 19:04:38 +00:00
|
|
|
public ResultCode GetDisplayController(ServiceCtx context)
|
2018-04-21 19:30:06 +00:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
MakeObject(context, new IDisplayController());
|
2018-04-21 19:30:06 +00:00
|
|
|
|
2019-07-14 19:04:38 +00:00
|
|
|
return ResultCode.Success;
|
2018-04-21 19:30:06 +00:00
|
|
|
}
|
|
|
|
|
2019-07-12 01:13:43 +00:00
|
|
|
[Command(11)]
|
|
|
|
// GetLibraryAppletCreator() -> object<nn::am::service::ILibraryAppletCreator>
|
2019-07-14 19:04:38 +00:00
|
|
|
public ResultCode GetLibraryAppletCreator(ServiceCtx context)
|
2018-04-21 19:30:06 +00:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
MakeObject(context, new ILibraryAppletCreator());
|
2018-04-21 19:30:06 +00:00
|
|
|
|
2019-07-14 19:04:38 +00:00
|
|
|
return ResultCode.Success;
|
2018-04-21 19:30:06 +00:00
|
|
|
}
|
|
|
|
|
2019-07-12 01:13:43 +00:00
|
|
|
[Command(20)]
|
|
|
|
// GetHomeMenuFunctions() -> object<nn::am::service::IHomeMenuFunctions>
|
2019-07-14 19:04:38 +00:00
|
|
|
public ResultCode GetHomeMenuFunctions(ServiceCtx context)
|
2018-04-21 19:30:06 +00:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
MakeObject(context, new IHomeMenuFunctions(context.Device.System));
|
2018-04-21 19:30:06 +00:00
|
|
|
|
2019-07-14 19:04:38 +00:00
|
|
|
return ResultCode.Success;
|
2018-04-21 19:30:06 +00:00
|
|
|
}
|
|
|
|
|
2019-07-12 01:13:43 +00:00
|
|
|
[Command(21)]
|
|
|
|
// GetGlobalStateController() -> object<nn::am::service::IGlobalStateController>
|
2019-07-14 19:04:38 +00:00
|
|
|
public ResultCode GetGlobalStateController(ServiceCtx context)
|
2018-04-21 19:30:06 +00:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
MakeObject(context, new IGlobalStateController());
|
2018-04-21 19:30:06 +00:00
|
|
|
|
2019-07-14 19:04:38 +00:00
|
|
|
return ResultCode.Success;
|
2018-04-21 19:30:06 +00:00
|
|
|
}
|
|
|
|
|
2019-07-12 01:13:43 +00:00
|
|
|
[Command(22)]
|
|
|
|
// GetApplicationCreator() -> object<nn::am::service::IApplicationCreator>
|
2019-07-14 19:04:38 +00:00
|
|
|
public ResultCode GetApplicationCreator(ServiceCtx context)
|
2018-04-21 19:30:06 +00:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
MakeObject(context, new IApplicationCreator());
|
2018-04-21 19:30:06 +00:00
|
|
|
|
2019-07-14 19:04:38 +00:00
|
|
|
return ResultCode.Success;
|
2018-04-21 19:30:06 +00:00
|
|
|
}
|
|
|
|
|
2019-07-12 01:13:43 +00:00
|
|
|
[Command(1000)]
|
|
|
|
// GetDebugFunctions() -> object<nn::am::service::IDebugFunctions>
|
2019-07-14 19:04:38 +00:00
|
|
|
public ResultCode GetDebugFunctions(ServiceCtx context)
|
2018-04-21 19:30:06 +00:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
MakeObject(context, new IDebugFunctions());
|
2018-04-21 19:30:06 +00:00
|
|
|
|
2019-07-14 19:04:38 +00:00
|
|
|
return ResultCode.Success;
|
2018-04-21 19:30:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|