IManagerDisplayService.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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()
  11. {
  12. _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. Logger.PrintStub(LogClass.ServiceVi);
  23. context.ResponseData.Write(0L); //LayerId
  24. return 0;
  25. }
  26. public long DestroyManagedLayer(ServiceCtx context)
  27. {
  28. Logger.PrintStub(LogClass.ServiceVi);
  29. return 0;
  30. }
  31. public static long AddToLayerStack(ServiceCtx context)
  32. {
  33. Logger.PrintStub(LogClass.ServiceVi);
  34. return 0;
  35. }
  36. public static long SetLayerVisibility(ServiceCtx context)
  37. {
  38. Logger.PrintStub(LogClass.ServiceVi);
  39. return 0;
  40. }
  41. }
  42. }