[video_core, hle] remove redundant parent references in system structs (#3908)

reworked a bit to remove references of parent objects and instead pass as arguments to methods to prevent useless reloads

Signed-off-by: lizzie <lizzie@eden-emu.dev>
Co-authored-by: maufeat <sahyno1996@gmail.com>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3908
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Reviewed-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
lizzie
2026-06-23 06:31:25 +02:00
committed by crueter
parent f8facda35f
commit 3aa0d46259
307 changed files with 4419 additions and 4477 deletions
+6 -6
View File
@@ -71,13 +71,13 @@ NfcDevice::~NfcDevice() {
void NfcDevice::NpadUpdate(Core::HID::ControllerTriggerType type) {
if (type == Core::HID::ControllerTriggerType::Connected) {
Initialize();
availability_change_event->Signal();
availability_change_event->Signal(system.Kernel());
return;
}
if (type == Core::HID::ControllerTriggerType::Disconnected) {
Finalize();
availability_change_event->Signal();
availability_change_event->Signal(system.Kernel());
return;
}
@@ -138,8 +138,8 @@ bool NfcDevice::LoadNfcTag(u8 protocol, u8 tag_type, u8 uuid_length, UniqueSeria
};
device_state = DeviceState::TagFound;
deactivate_event->GetReadableEvent().Clear();
activate_event->Signal();
deactivate_event->GetReadableEvent().Clear(system.Kernel());
activate_event->Signal(system.Kernel());
return true;
}
@@ -192,8 +192,8 @@ void NfcDevice::CloseNfcTag() {
device_state = DeviceState::TagRemoved;
encrypted_tag_data = {};
tag_data = {};
activate_event->GetReadableEvent().Clear();
deactivate_event->Signal();
activate_event->GetReadableEvent().Clear(system.Kernel());
deactivate_event->Signal(system.Kernel());
}
Kernel::KReadableEvent& NfcDevice::GetActivateEvent() const {