diff options
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Nifm/IStaticService.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Nifm/IStaticService.cs | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Nifm/IStaticService.cs b/Ryujinx.HLE/HOS/Services/Nifm/IStaticService.cs index 91b4d129..72ba2b7e 100644 --- a/Ryujinx.HLE/HOS/Services/Nifm/IStaticService.cs +++ b/Ryujinx.HLE/HOS/Services/Nifm/IStaticService.cs @@ -1,24 +1,12 @@ -using Ryujinx.HLE.HOS.Ipc; -using System.Collections.Generic; - namespace Ryujinx.HLE.HOS.Services.Nifm { [Service("nifm:u")] class IStaticService : IpcService { - private Dictionary<int, ServiceProcessRequest> _commands; - - public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands; - - public IStaticService(ServiceCtx context) - { - _commands = new Dictionary<int, ServiceProcessRequest> - { - { 4, CreateGeneralServiceOld }, - { 5, CreateGeneralService } - }; - } + public IStaticService(ServiceCtx context) { } + [Command(4)] + // CreateGeneralServiceOld() -> object<nn::nifm::detail::IGeneralService> public long CreateGeneralServiceOld(ServiceCtx context) { MakeObject(context, new IGeneralService()); @@ -26,6 +14,8 @@ namespace Ryujinx.HLE.HOS.Services.Nifm return 0; } + [Command(5)] // 3.0.0+ + // CreateGeneralService(u64, pid) -> object<nn::nifm::detail::IGeneralService> public long CreateGeneralService(ServiceCtx context) { MakeObject(context, new IGeneralService()); |
