1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-14 14:36:57 +00:00
Ryujinx/Ryujinx.HLE/HOS/Services/Pctl/ParentalControlServiceFactory/IParentalControlService.cs

41 lines
1 KiB
C#
Raw Normal View History

using Ryujinx.Common.Logging;
namespace Ryujinx.HLE.HOS.Services.Pctl.ParentalControlServiceFactory
{
class IParentalControlService : IpcService
{
private bool _initialized = false;
private bool _needInitialize;
2018-06-13 01:51:59 +01:00
public IParentalControlService(bool needInitialize = true)
{
_needInitialize = needInitialize;
}
[Command(1)] // 4.0.0+
// Initialize()
public ResultCode Initialize(ServiceCtx context)
{
if (_needInitialize && !_initialized)
2018-06-13 01:51:59 +01:00
{
_initialized = true;
2018-06-13 01:51:59 +01:00
}
else
2018-06-13 01:51:59 +01:00
{
Logger.PrintWarning(LogClass.ServicePctl, "Service is already initialized!");
2018-06-13 01:51:59 +01:00
}
return ResultCode.Success;
}
[Command(1001)]
// CheckFreeCommunicationPermission()
public ResultCode CheckFreeCommunicationPermission(ServiceCtx context)
{
Logger.PrintStub(LogClass.ServicePctl);
return ResultCode.Success;
}
}
}