Merge branch 'patch-2' of https://github.com/greggameplayer/Ryujinx into patch-2

This commit is contained in:
greggameplayer 2018-06-12 18:26:05 +02:00
commit 72e55bfc51

View file

@ -0,0 +1,51 @@
using Ryujinx.HLE.OsHle.Ipc;
using System.Collections.Generic;
namespace Ryujinx.HLE.OsHle.Services.Am
{
class IApplicationCreator : IpcService
{
private Dictionary<int, ServiceProcessRequest> m_Commands;
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
public IApplicationCreator()
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 0, CreateApplication },
{ 1, PopLaunchRequestedApplication },
{ 10, CreateSystemApplication },
{ 100, PopFloatingApplicationForDevelopment }
};
}
public long CreateApplication(ServiceCtx Context)
{
MakeObject(Context, new IApplicationAccessor());
return 0;
}
public long PopLaunchRequestedApplication(ServiceCtx Context)
{
MakeObject(Context, new IApplicationAccessor());
return 0;
}
public long CreateSystemApplication(ServiceCtx Context)
{
MakeObject(Context, new IApplicationAccessor());
return 0;
}
public long PopFloatingApplicationForDevelopment(ServiceCtx Context)
{
MakeObject(Context, new IApplicationAccessor());
return 0;
}
}
}