mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-31 21:13:04 +00:00
Create IApplicationAccessor.cs
This commit is contained in:
parent
0e11c0c85c
commit
4736e9f60e
1 changed files with 36 additions and 0 deletions
36
Ryujinx.HLE/OsHle/Services/Am/IApplicationAccessor.cs
Normal file
36
Ryujinx.HLE/OsHle/Services/Am/IApplicationAccessor.cs
Normal file
|
@ -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<int, ServiceProcessRequest> m_Commands;
|
||||||
|
|
||||||
|
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
|
||||||
|
|
||||||
|
public IApplicationAccessor()
|
||||||
|
{
|
||||||
|
m_Commands = new Dictionary<int, ServiceProcessRequest>()
|
||||||
|
{
|
||||||
|
{ 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue