From 4736e9f60e4fdebd9cd583a16e4e3c9cf189076c Mon Sep 17 00:00:00 2001 From: greggameplayer <33609333+greggameplayer@users.noreply.github.com> Date: Tue, 12 Jun 2018 18:46:31 +0200 Subject: [PATCH] Create IApplicationAccessor.cs --- .../OsHle/Services/Am/IApplicationAccessor.cs | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Ryujinx.HLE/OsHle/Services/Am/IApplicationAccessor.cs diff --git a/Ryujinx.HLE/OsHle/Services/Am/IApplicationAccessor.cs b/Ryujinx.HLE/OsHle/Services/Am/IApplicationAccessor.cs new file mode 100644 index 000000000..85c081d10 --- /dev/null +++ b/Ryujinx.HLE/OsHle/Services/Am/IApplicationAccessor.cs @@ -0,0 +1,36 @@ +using Ryujinx.Core.Logging; +using Ryujinx.Core.OsHle.Ipc; +using System.Collections.Generic; + +namespace Ryujinx.Core.OsHle.Services.Am +{ + class IApplicationAccessor : IpcService + { + private Dictionary m_Commands; + + public override IReadOnlyDictionary Commands => m_Commands; + + public IApplicationAccessor() + { + m_Commands = new Dictionary() + { + { 112, GetCurrentLibraryApplet }, + { 121, PushLaunchParameter } + }; + } + + public long GetCurrentLibraryApplet(ServiceCtx Context) + { + MakeObject(Context, new IAppletAccessor()); + + return 0; + } + + public long PushLaunchParameter(ServiceCtx Context) + { + Context.Ns.Log.PrintStub(LogClass.ServiceAm, "Stubbed."); + + return 0; + } + } +}