using Ryujinx.HLE.Logging; using Ryujinx.HLE.OsHle.Ipc; using System.Collections.Generic; namespace Ryujinx.HLE.OsHle.Services.Pctl { class IParentalControlService : IpcService { private Dictionary m_Commands; public override IReadOnlyDictionary Commands => m_Commands; private bool Initialized = false; private bool NeedInitialize; public IParentalControlService(bool NeedInitialize = true) { m_Commands = new Dictionary() { { 1, Initialize }, { 1001, CheckFreeCommunicationPermission } }; this.NeedInitialize = NeedInitialize; } public long Initialize(ServiceCtx Context) { if (NeedInitialize && !Initialized) { Initialized = true; } else { Context.Ns.Log.PrintWarning(LogClass.ServicePctl, "Service is already initialized!"); } return 0; } public long CheckFreeCommunicationPermission(ServiceCtx Context) { Context.Ns.Log.PrintStub(LogClass.ServicePctl, "Stubbed."); return 0; } } }