ISystemDisplayService.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using Ryujinx.HLE.Logging;
  2. using Ryujinx.HLE.OsHle.Ipc;
  3. using System.Collections.Generic;
  4. namespace Ryujinx.HLE.OsHle.Services.Vi
  5. {
  6. class ISystemDisplayService : IpcService
  7. {
  8. private Dictionary<int, ServiceProcessRequest> m_Commands;
  9. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  10. public ISystemDisplayService()
  11. {
  12. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  13. {
  14. { 2205, SetLayerZ },
  15. { 2207, SetLayerVisibility },
  16. { 3200, GetDisplayMode }
  17. };
  18. }
  19. public static long SetLayerZ(ServiceCtx Context)
  20. {
  21. Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
  22. return 0;
  23. }
  24. public static long SetLayerVisibility(ServiceCtx Context)
  25. {
  26. Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
  27. return 0;
  28. }
  29. public static long GetDisplayMode(ServiceCtx Context)
  30. {
  31. Context.ResponseData.Write(1280);
  32. Context.ResponseData.Write(720);
  33. Context.ResponseData.Write(60.0f);
  34. Context.ResponseData.Write(0);
  35. return 0;
  36. }
  37. }
  38. }