ISystemRootService.cs 786 B

123456789101112131415161718192021222324252627282930
  1. using Ryujinx.HLE.HOS.Ipc;
  2. using System.Collections.Generic;
  3. namespace Ryujinx.HLE.HOS.Services.Vi
  4. {
  5. [Service("vi:s")]
  6. class ISystemRootService : IpcService
  7. {
  8. private Dictionary<int, ServiceProcessRequest> _commands;
  9. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
  10. public ISystemRootService(ServiceCtx context)
  11. {
  12. _commands = new Dictionary<int, ServiceProcessRequest>
  13. {
  14. { 1, GetDisplayService }
  15. };
  16. }
  17. public long GetDisplayService(ServiceCtx context)
  18. {
  19. int serviceType = context.RequestData.ReadInt32();
  20. MakeObject(context, new IApplicationDisplayService());
  21. return 0;
  22. }
  23. }
  24. }