IManagerDisplayService.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using Ryujinx.Common.Logging;
  2. using Ryujinx.HLE.HOS.Ipc;
  3. using System.Collections.Generic;
  4. namespace Ryujinx.HLE.HOS.Services.Vi
  5. {
  6. class IManagerDisplayService : IpcService
  7. {
  8. private Dictionary<int, ServiceProcessRequest> _commands;
  9. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
  10. public IManagerDisplayService(IApplicationDisplayService applicationDisplayService)
  11. {
  12. _commands = new Dictionary<int, ServiceProcessRequest>
  13. {
  14. { 2010, CreateManagedLayer },
  15. { 2011, DestroyManagedLayer },
  16. { 2012, applicationDisplayService.CreateStrayLayer },
  17. { 6000, AddToLayerStack },
  18. { 6002, SetLayerVisibility }
  19. };
  20. }
  21. public static long CreateManagedLayer(ServiceCtx context)
  22. {
  23. Logger.PrintStub(LogClass.ServiceVi);
  24. context.ResponseData.Write(0L); //LayerId
  25. return 0;
  26. }
  27. public long DestroyManagedLayer(ServiceCtx context)
  28. {
  29. Logger.PrintStub(LogClass.ServiceVi);
  30. return 0;
  31. }
  32. public static long AddToLayerStack(ServiceCtx context)
  33. {
  34. Logger.PrintStub(LogClass.ServiceVi);
  35. return 0;
  36. }
  37. public static long SetLayerVisibility(ServiceCtx context)
  38. {
  39. Logger.PrintStub(LogClass.ServiceVi);
  40. return 0;
  41. }
  42. }
  43. }