1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-12 00:12:01 +00:00
Ryujinx/Ryujinx.HLE/HOS/Services/Nifm/IStaticService.cs

35 lines
888 B
C#
Raw Normal View History

using Ryujinx.HLE.HOS.Ipc;
using System.Collections.Generic;
namespace Ryujinx.HLE.HOS.Services.Nifm
{
class IStaticService : IpcService
{
2018-12-01 20:01:59 +00:00
private Dictionary<int, ServiceProcessRequest> _commands;
2018-12-01 20:01:59 +00:00
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
public IStaticService()
{
2018-12-01 20:01:59 +00:00
_commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 4, CreateGeneralServiceOld },
{ 5, CreateGeneralService }
};
}
2018-12-01 20:01:59 +00:00
public long CreateGeneralServiceOld(ServiceCtx context)
{
2018-12-01 20:01:59 +00:00
MakeObject(context, new IGeneralService());
return 0;
}
2018-12-01 20:01:59 +00:00
public long CreateGeneralService(ServiceCtx context)
{
2018-12-01 20:01:59 +00:00
MakeObject(context, new IGeneralService());
return 0;
}
}
}