diff options
| author | 2024-01-06 23:49:52 -0600 | |
|---|---|---|
| committer | 2024-01-06 23:49:52 -0600 | |
| commit | 0b4cc6e14c724a48a4f08814261c61b201a693e5 (patch) | |
| tree | 56087b0e2523c38097216f42bb985ef40d3c7ed7 /src | |
| parent | Merge pull request #12596 from german77/hid_qlaunch (diff) | |
| download | yuzu-0b4cc6e14c724a48a4f08814261c61b201a693e5.tar.gz yuzu-0b4cc6e14c724a48a4f08814261c61b201a693e5.tar.xz yuzu-0b4cc6e14c724a48a4f08814261c61b201a693e5.zip | |
service: hid: Make sure there's an active aruid handle
Diffstat (limited to 'src')
| -rw-r--r-- | src/hid_core/resources/npad/npad.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hid_core/resources/npad/npad.cpp b/src/hid_core/resources/npad/npad.cpp index e6c035628..97f31d26e 100644 --- a/src/hid_core/resources/npad/npad.cpp +++ b/src/hid_core/resources/npad/npad.cpp | |||
| @@ -870,6 +870,11 @@ void NPad::InitializeVibrationDevice( | |||
| 870 | const auto aruid = applet_resource_holder.applet_resource->GetActiveAruid(); | 870 | const auto aruid = applet_resource_holder.applet_resource->GetActiveAruid(); |
| 871 | const auto npad_index = static_cast<Core::HID::NpadIdType>(vibration_device_handle.npad_id); | 871 | const auto npad_index = static_cast<Core::HID::NpadIdType>(vibration_device_handle.npad_id); |
| 872 | const auto device_index = static_cast<std::size_t>(vibration_device_handle.device_index); | 872 | const auto device_index = static_cast<std::size_t>(vibration_device_handle.device_index); |
| 873 | |||
| 874 | if (aruid == 0) { | ||
| 875 | return; | ||
| 876 | } | ||
| 877 | |||
| 873 | InitializeVibrationDeviceAtIndex(aruid, npad_index, device_index); | 878 | InitializeVibrationDeviceAtIndex(aruid, npad_index, device_index); |
| 874 | } | 879 | } |
| 875 | 880 | ||