ServicePctl.cs 728 B

1234567891011121314151617181920212223242526272829
  1. using Ryujinx.Core.OsHle.Ipc;
  2. using System.Collections.Generic;
  3. using static Ryujinx.Core.OsHle.IpcServices.ObjHelper;
  4. namespace Ryujinx.Core.OsHle.IpcServices.Pctl
  5. {
  6. class ServicePctl : IIpcService
  7. {
  8. private Dictionary<int, ServiceProcessRequest> m_Commands;
  9. public IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  10. public ServicePctl()
  11. {
  12. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  13. {
  14. { 0, CreateService }
  15. };
  16. }
  17. public static long CreateService(ServiceCtx Context)
  18. {
  19. MakeObject(Context, new IParentalControlService());
  20. return 0;
  21. }
  22. }
  23. }