IStaticService.cs 763 B

1234567891011121314151617181920212223242526
  1. namespace Ryujinx.HLE.HOS.Services.Nifm
  2. {
  3. [Service("nifm:u")]
  4. class IStaticService : IpcService
  5. {
  6. public IStaticService(ServiceCtx context) { }
  7. [Command(4)]
  8. // CreateGeneralServiceOld() -> object<nn::nifm::detail::IGeneralService>
  9. public ResultCode CreateGeneralServiceOld(ServiceCtx context)
  10. {
  11. MakeObject(context, new IGeneralService());
  12. return ResultCode.Success;
  13. }
  14. [Command(5)] // 3.0.0+
  15. // CreateGeneralService(u64, pid) -> object<nn::nifm::detail::IGeneralService>
  16. public ResultCode CreateGeneralService(ServiceCtx context)
  17. {
  18. MakeObject(context, new IGeneralService());
  19. return ResultCode.Success;
  20. }
  21. }
  22. }