diff options
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Am/IWindowController.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Am/IWindowController.cs | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Am/IWindowController.cs b/Ryujinx.HLE/HOS/Services/Am/IWindowController.cs index 94a53480..5d05356e 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IWindowController.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IWindowController.cs @@ -1,24 +1,13 @@ using Ryujinx.Common.Logging; -using Ryujinx.HLE.HOS.Ipc; -using System.Collections.Generic; namespace Ryujinx.HLE.HOS.Services.Am { class IWindowController : IpcService { - private Dictionary<int, ServiceProcessRequest> _commands; - - public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands; - - public IWindowController() - { - _commands = new Dictionary<int, ServiceProcessRequest> - { - { 1, GetAppletResourceUserId }, - { 10, AcquireForegroundRights } - }; - } + public IWindowController() { } + [Command(1)] + // GetAppletResourceUserId() -> nn::applet::AppletResourceUserId public long GetAppletResourceUserId(ServiceCtx context) { Logger.PrintStub(LogClass.ServiceAm); @@ -28,6 +17,8 @@ namespace Ryujinx.HLE.HOS.Services.Am return 0; } + [Command(10)] + // AcquireForegroundRights() public long AcquireForegroundRights(ServiceCtx context) { Logger.PrintStub(LogClass.ServiceAm); |
