early-access version 2800
This commit is contained in:
parent
10e9e7d9ae
commit
a2c0c22feb
2 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 2799.
|
This is the source code for early-access 2800.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
|
|
@ -55,13 +55,13 @@ ResultCode Controller_NPad::IsDeviceHandleValid(
|
||||||
const bool npad_type = device_handle.npad_type < Core::HID::NpadStyleIndex::MaxNpadType;
|
const bool npad_type = device_handle.npad_type < Core::HID::NpadStyleIndex::MaxNpadType;
|
||||||
const bool device_index = device_handle.device_index < Core::HID::DeviceIndex::MaxDeviceIndex;
|
const bool device_index = device_handle.device_index < Core::HID::DeviceIndex::MaxDeviceIndex;
|
||||||
|
|
||||||
if (npad_type) {
|
if (!npad_type) {
|
||||||
return VibrationInvalidStyleIndex;
|
return VibrationInvalidStyleIndex;
|
||||||
}
|
}
|
||||||
if (npad_id) {
|
if (!npad_id) {
|
||||||
return VibrationInvalidNpadId;
|
return VibrationInvalidNpadId;
|
||||||
}
|
}
|
||||||
if (device_index) {
|
if (!device_index) {
|
||||||
return VibrationDeviceIndexOutOfRange;
|
return VibrationDeviceIndexOutOfRange;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue