IManagerRootService.cs 748 B

1234567891011121314151617181920212223242526272829
  1. using Ryujinx.HLE.HOS.Ipc;
  2. using System.Collections.Generic;
  3. namespace Ryujinx.HLE.HOS.Services.Vi
  4. {
  5. class IManagerRootService : IpcService
  6. {
  7. private Dictionary<int, ServiceProcessRequest> _commands;
  8. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
  9. public IManagerRootService()
  10. {
  11. _commands = new Dictionary<int, ServiceProcessRequest>
  12. {
  13. { 2, 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. }