Merge branch 'patch-2' of https://github.com/greggameplayer/Ryujinx into patch-2
This commit is contained in:
commit
72e55bfc51
1 changed files with 51 additions and 0 deletions
51
Ryujinx.Core/OsHle/Services/Am/IApplicationCreator.cs
Normal file
51
Ryujinx.Core/OsHle/Services/Am/IApplicationCreator.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue