android: unload hid after shutdown

This commit is contained in:
Narr the Reg 2023-11-23 12:39:22 -05:00 committed by Liam
parent 0b766e4523
commit a0d6289582

View file

@ -316,8 +316,10 @@ void EmulationSession::ShutdownEmulation() {
m_is_running = false;
// Unload user input.
m_system.HIDCore().UnloadInputDevices();
SCOPE_EXIT({
// Unload user input.
m_system.HIDCore().UnloadInputDevices();
});
// Shutdown the main emulated process
if (m_load_result == Core::SystemResultStatus::Success) {