mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 13:49:58 +00:00
hid: Check if applet_resource exists in InitializeVibrationDevice
This commit is contained in:
parent
9aeada734d
commit
6f70e1b1ff
1 changed files with 4 additions and 2 deletions
|
@ -155,8 +155,10 @@ private:
|
||||||
IPC::RequestParser rp{ctx};
|
IPC::RequestParser rp{ctx};
|
||||||
const auto vibration_device_handle{rp.PopRaw<Controller_NPad::DeviceHandle>()};
|
const auto vibration_device_handle{rp.PopRaw<Controller_NPad::DeviceHandle>()};
|
||||||
|
|
||||||
|
if (applet_resource != nullptr) {
|
||||||
applet_resource->GetController<Controller_NPad>(HidController::NPad)
|
applet_resource->GetController<Controller_NPad>(HidController::NPad)
|
||||||
.InitializeVibrationDevice(vibration_device_handle);
|
.InitializeVibrationDevice(vibration_device_handle);
|
||||||
|
}
|
||||||
|
|
||||||
LOG_DEBUG(Service_HID, "called, npad_type={}, npad_id={}, device_index={}",
|
LOG_DEBUG(Service_HID, "called, npad_type={}, npad_id={}, device_index={}",
|
||||||
vibration_device_handle.npad_type, vibration_device_handle.npad_id,
|
vibration_device_handle.npad_type, vibration_device_handle.npad_id,
|
||||||
|
|
Loading…
Reference in a new issue