mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-20 09:28:02 +00:00
hid: avoid direct pointer access of transfer memory objects
This commit is contained in:
parent
6a1319a01f
commit
434d182020
20 changed files with 91 additions and 69 deletions
|
@ -80,7 +80,13 @@ private:
|
|||
LOG_CRITICAL(Service_IRS, "Invalid index {}", index);
|
||||
return;
|
||||
}
|
||||
processors[index] = std::make_unique<T>(system.HIDCore(), device_state, index);
|
||||
|
||||
if constexpr (std::is_constructible_v<T, Core::System&, Core::IrSensor::DeviceFormat&,
|
||||
std::size_t>) {
|
||||
processors[index] = std::make_unique<T>(system, device_state, index);
|
||||
} else {
|
||||
processors[index] = std::make_unique<T>(system.HIDCore(), device_state, index);
|
||||
}
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue