IManagerRootService.cs 741 B

12345678910111213141516171819202122
  1. using Ryujinx.HLE.HOS.Services.Vi.RootService;
  2. namespace Ryujinx.HLE.HOS.Services.Vi
  3. {
  4. [Service("vi:m")]
  5. class IManagerRootService : IpcService
  6. {
  7. // vi:u/m/s aren't on 3 separate threads but we can't put them together with the current ServerBase
  8. public IManagerRootService(ServiceCtx context) : base(context.Device.System.ViServerM) { }
  9. [CommandHipc(2)]
  10. // GetDisplayService(u32) -> object<nn::visrv::sf::IApplicationDisplayService>
  11. public ResultCode GetDisplayService(ServiceCtx context)
  12. {
  13. int serviceType = context.RequestData.ReadInt32();
  14. MakeObject(context, new IApplicationDisplayService());
  15. return ResultCode.Success;
  16. }
  17. }
  18. }