Apply suggestions from code review

Co-authored-by: Ac_K <Acoustik666@gmail.com>
This commit is contained in:
Tsubasa0504 2024-04-19 21:21:12 +09:00 committed by GitHub
commit 18f3325638
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1111,11 +1111,11 @@ namespace Ryujinx.HLE.HOS.Services.Hid
// SetNpadUseAnalogStickUseCenterClamp(bool Enable, nn::applet::AppletResourceUserId) // SetNpadUseAnalogStickUseCenterClamp(bool Enable, nn::applet::AppletResourceUserId)
public ResultCode SetNpadUseAnalogStickUseCenterClamp(ServiceCtx context) public ResultCode SetNpadUseAnalogStickUseCenterClamp(ServiceCtx context)
{ {
ulong PID = context.RequestData.ReadUInt64(); ulong pid = context.RequestData.ReadUInt64();
_NpadAnalogStickCenterClampEnabled = context.RequestData.ReadUInt32() != 0; _npadAnalogStickCenterClampEnabled = context.RequestData.ReadUInt32() != 0;
long appletResourceUserId = context.RequestData.ReadInt64(); long appletResourceUserId = context.RequestData.ReadInt64();
Logger.Stub?.PrintStub(LogClass.ServiceHid, new { appletResourceUserId, _NpadAnalogStickCenterClampEnabled }); Logger.Stub?.PrintStub(LogClass.ServiceHid, new { appletResourceUserId, _npadAnalogStickCenterClampEnabled });
return ResultCode.Success; return ResultCode.Success;
} }