mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-24 19:05:46 +00:00
eda6b78894
* apm: Refactoring/Unstub service This PR implement some IPC calls of apm service: - nn::apm::IManager is fully implemented. - nn::apm::ISession is fully implemented (close #1633). - nn::apm::ISystemManager is partially implemented. nn::appletAE::ICommonStateGetter have some calls which are just a layer of apm IPC calls. What we did in some calls was wrong, it's fixed now! Everything is checked with RE. * abstract Apm *Server as Thog requested * abstract ISession and fix other classes * Address gdkchan feedback * Fix class * Fix Logging
99 lines
No EOL
3.1 KiB
C#
99 lines
No EOL
3.1 KiB
C#
using Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.SystemAppletProxy;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService
|
|
{
|
|
class ISystemAppletProxy : IpcService
|
|
{
|
|
public ISystemAppletProxy() { }
|
|
|
|
[Command(0)]
|
|
// GetCommonStateGetter() -> object<nn::am::service::ICommonStateGetter>
|
|
public ResultCode GetCommonStateGetter(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new ICommonStateGetter(context));
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(1)]
|
|
// GetSelfController() -> object<nn::am::service::ISelfController>
|
|
public ResultCode GetSelfController(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new ISelfController(context.Device.System));
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(2)]
|
|
// GetWindowController() -> object<nn::am::service::IWindowController>
|
|
public ResultCode GetWindowController(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IWindowController());
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(3)]
|
|
// GetAudioController() -> object<nn::am::service::IAudioController>
|
|
public ResultCode GetAudioController(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IAudioController());
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(4)]
|
|
// GetDisplayController() -> object<nn::am::service::IDisplayController>
|
|
public ResultCode GetDisplayController(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IDisplayController());
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(11)]
|
|
// GetLibraryAppletCreator() -> object<nn::am::service::ILibraryAppletCreator>
|
|
public ResultCode GetLibraryAppletCreator(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new ILibraryAppletCreator());
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(20)]
|
|
// GetHomeMenuFunctions() -> object<nn::am::service::IHomeMenuFunctions>
|
|
public ResultCode GetHomeMenuFunctions(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IHomeMenuFunctions(context.Device.System));
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(21)]
|
|
// GetGlobalStateController() -> object<nn::am::service::IGlobalStateController>
|
|
public ResultCode GetGlobalStateController(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IGlobalStateController());
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(22)]
|
|
// GetApplicationCreator() -> object<nn::am::service::IApplicationCreator>
|
|
public ResultCode GetApplicationCreator(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IApplicationCreator());
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(1000)]
|
|
// GetDebugFunctions() -> object<nn::am::service::IDebugFunctions>
|
|
public ResultCode GetDebugFunctions(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IDebugFunctions());
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
} |