mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-07 09:39:09 +01:00
Merge pull request #12425 from german77/temp-fix
service: hid: Fix crash on InitializeVibrationDevice
This commit is contained in:
commit
ad7445d4cc
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ private:
|
||||||
IPC::RequestParser rp{ctx};
|
IPC::RequestParser rp{ctx};
|
||||||
const auto vibration_device_handle{rp.PopRaw<Core::HID::VibrationDeviceHandle>()};
|
const auto vibration_device_handle{rp.PopRaw<Core::HID::VibrationDeviceHandle>()};
|
||||||
|
|
||||||
if (resource_manager != nullptr) {
|
if (resource_manager != nullptr && resource_manager->GetNpad()) {
|
||||||
resource_manager->GetNpad()->InitializeVibrationDevice(vibration_device_handle);
|
resource_manager->GetNpad()->InitializeVibrationDevice(vibration_device_handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue