mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-29 03:53:05 +00:00
51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|