mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 09:35:27 +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
29 lines
874 B
C#
29 lines
874 B
C#
namespace Ryujinx.HLE.HOS.Services.Pctl
|
|
{
|
|
[Service("pctl")]
|
|
[Service("pctl:a")]
|
|
[Service("pctl:r")]
|
|
[Service("pctl:s")]
|
|
class IParentalControlServiceFactory : IpcService
|
|
{
|
|
public IParentalControlServiceFactory(ServiceCtx context) { }
|
|
|
|
[Command(0)]
|
|
// CreateService(u64, pid) -> object<nn::pctl::detail::ipc::IParentalControlService>
|
|
public long CreateService(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IParentalControlService());
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(1)] // 4.0.0+
|
|
// CreateServiceWithoutInitialize(u64, pid) -> object<nn::pctl::detail::ipc::IParentalControlService>
|
|
public long CreateServiceWithoutInitialize(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IParentalControlService(false));
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
} |