Add irs IIrSensorServer: 319 (ActivateIrsensorWithFunctionLevel)

This commit is contained in:
HorrorTroll 2019-03-22 20:47:53 +07:00
commit fc8f139875

View file

@ -16,8 +16,9 @@ namespace Ryujinx.HLE.HOS.Services.Irs
{ {
_commands = new Dictionary<int, ServiceProcessRequest> _commands = new Dictionary<int, ServiceProcessRequest>
{ {
{ 302, ActivateIrsensor }, { 302, ActivateIrsensor },
{ 303, DeactivateIrsensor } { 303, DeactivateIrsensor },
{ 319, ActivateIrsensorWithFunctionLevel }
}; };
} }
@ -40,5 +41,16 @@ namespace Ryujinx.HLE.HOS.Services.Irs
return 0; return 0;
} }
// ActivateIrsensorWithFunctionLevel(nn::applet::AppletResourceUserId, nn::irsensor::PackedFunctionLevel, pid)
public long ActivateIrsensorWithFunctionLevel(ServiceCtx context)
{
long appletResourceUserId = context.RequestData.ReadInt64();
int packedFunctionLevel = context.RequestData.ReadInt32();
Logger.PrintStub(LogClass.ServiceIrs, new { appletResourceUserId, packedFunctionLevel });
return 0;
}
} }
} }