IManagerRootService.cs 589 B

123456789101112131415161718192021
  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. public IManagerRootService(ServiceCtx context) { }
  8. [Command(2)]
  9. // GetDisplayService(u32) -> object<nn::visrv::sf::IApplicationDisplayService>
  10. public ResultCode GetDisplayService(ServiceCtx context)
  11. {
  12. int serviceType = context.RequestData.ReadInt32();
  13. MakeObject(context, new IApplicationDisplayService());
  14. return ResultCode.Success;
  15. }
  16. }
  17. }