2021-06-28 20:54:45 +02:00
|
|
|
|
using Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.LibraryAppletProxy;
|
|
|
|
|
using Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.SystemAppletProxy;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService
|
|
|
|
|
{
|
|
|
|
|
class ILibraryAppletProxy : IpcService
|
|
|
|
|
{
|
2022-02-09 21:18:07 +01:00
|
|
|
|
private readonly ulong _pid;
|
2021-06-28 20:54:45 +02:00
|
|
|
|
|
2022-02-09 21:18:07 +01:00
|
|
|
|
public ILibraryAppletProxy(ulong pid)
|
2021-06-28 20:54:45 +02:00
|
|
|
|
{
|
|
|
|
|
_pid = pid;
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
|
[CommandCmif(0)]
|
2021-06-28 20:54:45 +02:00
|
|
|
|
// GetCommonStateGetter() -> object<nn::am::service::ICommonStateGetter>
|
|
|
|
|
public ResultCode GetCommonStateGetter(ServiceCtx context)
|
|
|
|
|
{
|
|
|
|
|
MakeObject(context, new ICommonStateGetter(context));
|
|
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
|
[CommandCmif(1)]
|
2021-06-28 20:54:45 +02:00
|
|
|
|
// GetSelfController() -> object<nn::am::service::ISelfController>
|
|
|
|
|
public ResultCode GetSelfController(ServiceCtx context)
|
|
|
|
|
{
|
|
|
|
|
MakeObject(context, new ISelfController(context, _pid));
|
|
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
|
[CommandCmif(2)]
|
2021-06-28 20:54:45 +02:00
|
|
|
|
// GetWindowController() -> object<nn::am::service::IWindowController>
|
|
|
|
|
public ResultCode GetWindowController(ServiceCtx context)
|
|
|
|
|
{
|
|
|
|
|
MakeObject(context, new IWindowController(_pid));
|
|
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
|
[CommandCmif(3)]
|
2021-06-28 20:54:45 +02:00
|
|
|
|
// GetAudioController() -> object<nn::am::service::IAudioController>
|
|
|
|
|
public ResultCode GetAudioController(ServiceCtx context)
|
|
|
|
|
{
|
|
|
|
|
MakeObject(context, new IAudioController());
|
|
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
|
[CommandCmif(4)]
|
2021-06-28 20:54:45 +02:00
|
|
|
|
// GetDisplayController() -> object<nn::am::service::IDisplayController>
|
|
|
|
|
public ResultCode GetDisplayController(ServiceCtx context)
|
|
|
|
|
{
|
|
|
|
|
MakeObject(context, new IDisplayController(context));
|
|
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
|
[CommandCmif(10)]
|
2021-06-28 20:54:45 +02:00
|
|
|
|
// GetProcessWindingController() -> object<nn::am::service::IProcessWindingController>
|
|
|
|
|
public ResultCode GetProcessWindingController(ServiceCtx context)
|
|
|
|
|
{
|
|
|
|
|
MakeObject(context, new IProcessWindingController());
|
|
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
|
[CommandCmif(11)]
|
2021-06-28 20:54:45 +02:00
|
|
|
|
// GetLibraryAppletCreator() -> object<nn::am::service::ILibraryAppletCreator>
|
|
|
|
|
public ResultCode GetLibraryAppletCreator(ServiceCtx context)
|
|
|
|
|
{
|
|
|
|
|
MakeObject(context, new ILibraryAppletCreator());
|
|
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
|
[CommandCmif(20)]
|
2021-06-28 20:54:45 +02:00
|
|
|
|
// OpenLibraryAppletSelfAccessor() -> object<nn::am::service::ILibraryAppletSelfAccessor>
|
|
|
|
|
public ResultCode OpenLibraryAppletSelfAccessor(ServiceCtx context)
|
|
|
|
|
{
|
|
|
|
|
MakeObject(context, new ILibraryAppletSelfAccessor(context));
|
|
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
|
[CommandCmif(21)]
|
2021-06-28 20:54:45 +02:00
|
|
|
|
// GetAppletCommonFunctions() -> object<nn::am::service::IAppletCommonFunctions>
|
|
|
|
|
public ResultCode GetAppletCommonFunctions(ServiceCtx context)
|
|
|
|
|
{
|
|
|
|
|
MakeObject(context, new IAppletCommonFunctions());
|
|
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
|
[CommandCmif(1000)]
|
2021-06-28 20:54:45 +02:00
|
|
|
|
// GetDebugFunctions() -> object<nn::am::service::IDebugFunctions>
|
|
|
|
|
public ResultCode GetDebugFunctions(ServiceCtx context)
|
|
|
|
|
{
|
|
|
|
|
MakeObject(context, new IDebugFunctions());
|
|
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|