ISystemRootService.cs 755 B

1234567891011121314151617181920212223242526272829
  1. using Ryujinx.HLE.OsHle.Ipc;
  2. using System.Collections.Generic;
  3. namespace Ryujinx.HLE.OsHle.Services.Vi
  4. {
  5. class ISystemRootService : IpcService
  6. {
  7. private Dictionary<int, ServiceProcessRequest> m_Commands;
  8. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  9. public ISystemRootService()
  10. {
  11. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  12. {
  13. { 1, GetDisplayService }
  14. };
  15. }
  16. public long GetDisplayService(ServiceCtx Context)
  17. {
  18. int ServiceType = Context.RequestData.ReadInt32();
  19. MakeObject(Context, new IApplicationDisplayService());
  20. return 0;
  21. }
  22. }
  23. }