ServiceVi.cs 823 B

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