diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-07 03:51:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-07 03:51:22 +0100 |
commit | 71fbc87dbd1d828dd6e008a2d397d5733843b124 (patch) | |
tree | 80bc1dbba75b26c38630f9db81f218dee6c8a71b /src/hid_core/resources/npad/npad_resource.cpp | |
parent | Merge pull request #12582 from german77/hid-core (diff) | |
parent | service: hid: Handle pending delete (diff) | |
download | yuzu-71fbc87dbd1d828dd6e008a2d397d5733843b124.tar yuzu-71fbc87dbd1d828dd6e008a2d397d5733843b124.tar.gz yuzu-71fbc87dbd1d828dd6e008a2d397d5733843b124.tar.bz2 yuzu-71fbc87dbd1d828dd6e008a2d397d5733843b124.tar.lz yuzu-71fbc87dbd1d828dd6e008a2d397d5733843b124.tar.xz yuzu-71fbc87dbd1d828dd6e008a2d397d5733843b124.tar.zst yuzu-71fbc87dbd1d828dd6e008a2d397d5733843b124.zip |
Diffstat (limited to '')
-rw-r--r-- | src/hid_core/resources/npad/npad_resource.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hid_core/resources/npad/npad_resource.cpp b/src/hid_core/resources/npad/npad_resource.cpp index b0255a05c..ea9fc14ed 100644 --- a/src/hid_core/resources/npad/npad_resource.cpp +++ b/src/hid_core/resources/npad/npad_resource.cpp @@ -46,7 +46,9 @@ Result NPadResource::RegisterAppletResourceUserId(u64 aruid) { data_index = i; break; } - if (registration_list.flag[i] == RegistrationStatus::None) { + // TODO: Don't Handle pending delete here + if (registration_list.flag[i] == RegistrationStatus::None || + registration_list.flag[i] == RegistrationStatus::PendingDelete) { data_index = i; break; } |