IManagerDisplayService.cs 845 B

123456789101112131415161718192021222324252627282930313233
  1. using Ryujinx.Core.OsHle.Ipc;
  2. using System.Collections.Generic;
  3. namespace Ryujinx.Core.OsHle.Objects.Vi
  4. {
  5. class IManagerDisplayService : IIpcInterface
  6. {
  7. private Dictionary<int, ServiceProcessRequest> m_Commands;
  8. public IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  9. public IManagerDisplayService()
  10. {
  11. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  12. {
  13. { 2010, CreateManagedLayer },
  14. { 6000, AddToLayerStack }
  15. };
  16. }
  17. public static long CreateManagedLayer(ServiceCtx Context)
  18. {
  19. Context.ResponseData.Write(0L); //LayerId
  20. return 0;
  21. }
  22. public static long AddToLayerStack(ServiceCtx Context)
  23. {
  24. return 0;
  25. }
  26. }
  27. }