diff options
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Am/ILibraryAppletCreator.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Am/ILibraryAppletCreator.cs | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletCreator.cs b/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletCreator.cs index 3f88c545..785472a7 100644 --- a/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletCreator.cs +++ b/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletCreator.cs @@ -1,23 +1,11 @@ -using Ryujinx.HLE.HOS.Ipc; -using System.Collections.Generic; - namespace Ryujinx.HLE.HOS.Services.Am { class ILibraryAppletCreator : IpcService { - private Dictionary<int, ServiceProcessRequest> _commands; - - public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands; - - public ILibraryAppletCreator() - { - _commands = new Dictionary<int, ServiceProcessRequest> - { - { 0, CreateLibraryApplet }, - { 10, CreateStorage } - }; - } + public ILibraryAppletCreator() { } + [Command(0)] + // CreateLibraryApplet(u32, u32) -> object<nn::am::service::ILibraryAppletAccessor> public long CreateLibraryApplet(ServiceCtx context) { MakeObject(context, new ILibraryAppletAccessor(context.Device.System)); @@ -25,6 +13,8 @@ namespace Ryujinx.HLE.HOS.Services.Am return 0; } + [Command(10)] + // CreateStorage(u64) -> object<nn::am::service::IStorage> public long CreateStorage(ServiceCtx context) { long size = context.RequestData.ReadInt64(); |
