mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-14 07:54:57 +00:00
service: hid: Restore active aruid
This commit is contained in:
parent
575183d6dc
commit
87e26de0fc
2 changed files with 12 additions and 0 deletions
|
@ -118,6 +118,12 @@ void AppletResource::UnregisterAppletResourceUserId(u64 aruid) {
|
|||
data[index].aruid = 0;
|
||||
|
||||
registration_list.flag[index] = RegistrationStatus::PendingDelete;
|
||||
|
||||
for (std::size_t i = 0; i < AruidIndexMax; i++) {
|
||||
if (registration_list.flag[i] == RegistrationStatus::Initialized) {
|
||||
active_aruid = registration_list.aruid[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void AppletResource::FreeAppletResourceId(u64 aruid) {
|
||||
|
|
|
@ -72,6 +72,12 @@ void NPadResource::UnregisterAppletResourceUserId(u64 aruid) {
|
|||
state[aruid_index] = {};
|
||||
registration_list.flag[aruid_index] = RegistrationStatus::PendingDelete;
|
||||
}
|
||||
|
||||
for (std::size_t i = 0; i < AruidIndexMax; i++) {
|
||||
if (registration_list.flag[i] == RegistrationStatus::Initialized) {
|
||||
active_data_aruid = registration_list.aruid[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void NPadResource::DestroyStyleSetUpdateEvents(u64 aruid) {
|
||||
|
|
Loading…
Reference in a new issue