IStaticService.cs 869 B

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