From a2c0c22febbd1cc3ae71a2c19658a57d45699eac Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Fri, 24 Jun 2022 06:39:51 +0200 Subject: [PATCH] early-access version 2800 --- README.md | 2 +- src/core/hle/service/hid/controllers/npad.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6b088e1d4..7f383cdcb 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 2799. +This is the source code for early-access 2800. ## Legal Notice diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index cc8fd7837..c35a75747 100755 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp @@ -55,13 +55,13 @@ ResultCode Controller_NPad::IsDeviceHandleValid( const bool npad_type = device_handle.npad_type < Core::HID::NpadStyleIndex::MaxNpadType; const bool device_index = device_handle.device_index < Core::HID::DeviceIndex::MaxDeviceIndex; - if (npad_type) { + if (!npad_type) { return VibrationInvalidStyleIndex; } - if (npad_id) { + if (!npad_id) { return VibrationInvalidNpadId; } - if (device_index) { + if (!device_index) { return VibrationDeviceIndexOutOfRange; }