mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-24 12:05:48 +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
No EOL
988 B
C#
31 lines
No EOL
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;
|
|
}
|
|
}
|
|
} |