mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 17:45:26 +00:00
560ccbeb2d
* Refactoring commands handling - Use Reflection to handle commands ID. - Add all symbols (from SwIPC so not all time accurate). - Re-sort some services commands methods. - Some cleanup. - Keep some empty constructor for consistency. * Fix order in IProfile
97 lines
2.8 KiB
C#
97 lines
2.8 KiB
C#
namespace Ryujinx.HLE.HOS.Services.Am
|
|
{
|
|
class ISystemAppletProxy : IpcService
|
|
{
|
|
public ISystemAppletProxy() { }
|
|
|
|
[Command(0)]
|
|
// GetCommonStateGetter() -> object<nn::am::service::ICommonStateGetter>
|
|
public long GetCommonStateGetter(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new ICommonStateGetter(context.Device.System));
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(1)]
|
|
// GetSelfController() -> object<nn::am::service::ISelfController>
|
|
public long GetSelfController(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new ISelfController(context.Device.System));
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(2)]
|
|
// GetWindowController() -> object<nn::am::service::IWindowController>
|
|
public long GetWindowController(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IWindowController());
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(3)]
|
|
// GetAudioController() -> object<nn::am::service::IAudioController>
|
|
public long GetAudioController(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IAudioController());
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(4)]
|
|
// GetDisplayController() -> object<nn::am::service::IDisplayController>
|
|
public long GetDisplayController(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IDisplayController());
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(11)]
|
|
// GetLibraryAppletCreator() -> object<nn::am::service::ILibraryAppletCreator>
|
|
public long GetLibraryAppletCreator(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new ILibraryAppletCreator());
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(20)]
|
|
// GetHomeMenuFunctions() -> object<nn::am::service::IHomeMenuFunctions>
|
|
public long GetHomeMenuFunctions(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IHomeMenuFunctions(context.Device.System));
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(21)]
|
|
// GetGlobalStateController() -> object<nn::am::service::IGlobalStateController>
|
|
public long GetGlobalStateController(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IGlobalStateController());
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(22)]
|
|
// GetApplicationCreator() -> object<nn::am::service::IApplicationCreator>
|
|
public long GetApplicationCreator(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IApplicationCreator());
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(1000)]
|
|
// GetDebugFunctions() -> object<nn::am::service::IDebugFunctions>
|
|
public long GetDebugFunctions(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IDebugFunctions());
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
} |