2018-06-12 16:26:05 +00:00
|
|
|
using Ryujinx.HLE.OsHle.Ipc;
|
2018-04-21 19:30:06 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
2018-06-12 16:26:05 +00:00
|
|
|
namespace Ryujinx.HLE.OsHle.Services.Am
|
2018-04-21 19:30:06 +00:00
|
|
|
{
|
|
|
|
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>()
|
|
|
|
{
|
2018-06-10 01:24:01 +00:00
|
|
|
{ 0, CreateApplication },
|
|
|
|
{ 1, PopLaunchRequestedApplication },
|
|
|
|
{ 10, CreateSystemApplication },
|
|
|
|
{ 100, PopFloatingApplicationForDevelopment }
|
2018-04-21 19:30:06 +00:00
|
|
|
};
|
|
|
|
}
|
2018-06-10 01:24:01 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2018-04-21 19:30:06 +00:00
|
|
|
}
|
2018-06-10 01:24:01 +00:00
|
|
|
}
|