mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-08 16:48:40 +00:00
a0720b5681
* Refactoring HOS folder structure Refactoring HOS folder structure: - Added some subfolders when needed (Following structure decided in private). - Added some `Types` folders when needed. - Little cleanup here and there. - Add services placeholders for every HOS services (close #766 and #753). * Remove Types namespaces
31 lines
988 B
C#
31 lines
988 B
C#
using Ryujinx.HLE.HOS.Services.Pctl.ParentalControlServiceFactory;
|
|
|
|
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 ResultCode CreateService(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IParentalControlService());
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(1)] // 4.0.0+
|
|
// CreateServiceWithoutInitialize(u64, pid) -> object<nn::pctl::detail::ipc::IParentalControlService>
|
|
public ResultCode CreateServiceWithoutInitialize(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IParentalControlService(false));
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
} |