From 560ccbeb2d55a4426ad2827bf7534d4a695431c2 Mon Sep 17 00:00:00 2001 From: Ac_K Date: Fri, 12 Jul 2019 03:13:43 +0200 Subject: Refactoring commands handling (#728) * Refactoring commands handling - Use Reflection to handle commands ID. - Add all symbols (from SwIPC so not all time accurate). - Re-sort some services commands methods. - Some cleanup. - Keep some empty constructor for consistency. * Fix order in IProfile --- .../HOS/Services/Ns/IApplicationManagerInterface.cs | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs') diff --git a/Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs b/Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs index 32c50dcd..50d181b7 100644 --- a/Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs +++ b/Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs @@ -1,7 +1,5 @@ using LibHac; -using Ryujinx.HLE.HOS.Ipc; using System; -using System.Collections.Generic; using System.Text; namespace Ryujinx.HLE.HOS.Services.Ns @@ -9,18 +7,10 @@ namespace Ryujinx.HLE.HOS.Services.Ns [Service("ns:am")] class IApplicationManagerInterface : IpcService { - private Dictionary _commands; - - public override IReadOnlyDictionary Commands => _commands; - - public IApplicationManagerInterface(ServiceCtx context) - { - _commands = new Dictionary - { - { 400, GetApplicationControlData } - }; - } + public IApplicationManagerInterface(ServiceCtx context) { } + [Command(400)] + // GetApplicationControlData(unknown<0x10>) -> (unknown<4>, buffer) public long GetApplicationControlData(ServiceCtx context) { long position = context.Request.ReceiveBuff[0].Position; @@ -220,4 +210,4 @@ namespace Ryujinx.HLE.HOS.Services.Ns return 0; } } -} +} \ No newline at end of file -- cgit v1.2.3