IManagerDisplayService.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 IManagerDisplayService : IpcService
  7. {
  8. private Dictionary<int, ServiceProcessRequest> m_Commands;
  9. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  10. public IManagerDisplayService()
  11. {
  12. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  13. {
  14. { 2010, CreateManagedLayer },
  15. { 2011, DestroyManagedLayer },
  16. { 6000, AddToLayerStack },
  17. { 6002, SetLayerVisibility }
  18. };
  19. }
  20. public static long CreateManagedLayer(ServiceCtx Context)
  21. {
  22. Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
  23. Context.ResponseData.Write(0L); //LayerId
  24. return 0;
  25. }
  26. public long DestroyManagedLayer(ServiceCtx Context)
  27. {
  28. Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
  29. return 0;
  30. }
  31. public static long AddToLayerStack(ServiceCtx Context)
  32. {
  33. Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
  34. return 0;
  35. }
  36. public static long SetLayerVisibility(ServiceCtx Context)
  37. {
  38. Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
  39. return 0;
  40. }
  41. }
  42. }