diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-06 21:09:13 +0100 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2024-01-06 22:42:19 +0100 |
commit | edfbf363def14dcd4e3e12b53d823ebb21bc4fee (patch) | |
tree | 80bc1dbba75b26c38630f9db81f218dee6c8a71b /src/hid_core/resources/npad | |
parent | Merge pull request #12582 from german77/hid-core (diff) | |
download | yuzu-edfbf363def14dcd4e3e12b53d823ebb21bc4fee.tar yuzu-edfbf363def14dcd4e3e12b53d823ebb21bc4fee.tar.gz yuzu-edfbf363def14dcd4e3e12b53d823ebb21bc4fee.tar.bz2 yuzu-edfbf363def14dcd4e3e12b53d823ebb21bc4fee.tar.lz yuzu-edfbf363def14dcd4e3e12b53d823ebb21bc4fee.tar.xz yuzu-edfbf363def14dcd4e3e12b53d823ebb21bc4fee.tar.zst yuzu-edfbf363def14dcd4e3e12b53d823ebb21bc4fee.zip |
Diffstat (limited to 'src/hid_core/resources/npad')
-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; } |