IManagerDisplayService.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using Ryujinx.Common.Logging;
  2. namespace Ryujinx.HLE.HOS.Services.Vi.RootService.ApplicationDisplayService
  3. {
  4. class IManagerDisplayService : IpcService
  5. {
  6. private static IApplicationDisplayService _applicationDisplayService;
  7. public IManagerDisplayService(IApplicationDisplayService applicationDisplayService)
  8. {
  9. _applicationDisplayService = applicationDisplayService;
  10. }
  11. [Command(2010)]
  12. // CreateManagedLayer(u32, u64, nn::applet::AppletResourceUserId) -> u64
  13. public ResultCode CreateManagedLayer(ServiceCtx context)
  14. {
  15. Logger.PrintStub(LogClass.ServiceVi);
  16. context.ResponseData.Write(0L); //LayerId
  17. return ResultCode.Success;
  18. }
  19. [Command(2011)]
  20. // DestroyManagedLayer(u64)
  21. public ResultCode DestroyManagedLayer(ServiceCtx context)
  22. {
  23. Logger.PrintStub(LogClass.ServiceVi);
  24. return ResultCode.Success;
  25. }
  26. [Command(2012)] // 7.0.0+
  27. // CreateStrayLayer(u32, u64) -> (u64, u64, buffer<bytes, 6>)
  28. public ResultCode CreateStrayLayer(ServiceCtx context)
  29. {
  30. Logger.PrintStub(LogClass.ServiceVi);
  31. return _applicationDisplayService.CreateStrayLayer(context);
  32. }
  33. [Command(6000)]
  34. // AddToLayerStack(u32, u64)
  35. public ResultCode AddToLayerStack(ServiceCtx context)
  36. {
  37. Logger.PrintStub(LogClass.ServiceVi);
  38. return ResultCode.Success;
  39. }
  40. [Command(6002)]
  41. // SetLayerVisibility(b8, u64)
  42. public ResultCode SetLayerVisibility(ServiceCtx context)
  43. {
  44. Logger.PrintStub(LogClass.ServiceVi);
  45. return ResultCode.Success;
  46. }
  47. }
  48. }