mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-21 23:39:55 +00:00
[hid_core] fix LM2 crash due to callbacks not being removed properly (#4178)
the function returned the key AFTER this one, which points to an invalid object basically its like "oh im returning the index AFTER Myself" off-by-1 error basically; now it returns OUR own key. Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4178 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
This commit is contained in:
@@ -24,7 +24,8 @@ HIDCore::HIDCore(Kernel::KernelCore& kernel_)
|
||||
, player_8{std::make_unique<EmulatedController>(NpadIdType::Player8)}
|
||||
, other{std::make_unique<EmulatedController>(NpadIdType::Other)}
|
||||
, handheld{std::make_unique<EmulatedController>(NpadIdType::Handheld)}
|
||||
, console{std::make_unique<EmulatedConsole>()}, devices{std::make_unique<EmulatedDevices>()}
|
||||
, console{std::make_unique<EmulatedConsole>()}
|
||||
, devices{std::make_unique<EmulatedDevices>()}
|
||||
, kernel{kernel_}
|
||||
{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user