IManagerDisplayService.cs 1004 B

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