ISystemRootService.cs 739 B

12345678910111213141516171819202122
  1. using Ryujinx.HLE.HOS.Services.Vi.RootService;
  2. namespace Ryujinx.HLE.HOS.Services.Vi
  3. {
  4. [Service("vi:s")]
  5. class ISystemRootService : 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 ISystemRootService(ServiceCtx context) : base(context.Device.System.ViServerS) { }
  9. [CommandHipc(1)]
  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. }