Qt: Restart game even if there's no savestate when using the restart shortcut

This commit is contained in:
Megamouse 2026-01-12 01:32:27 +01:00
parent cf94be2aac
commit d5bf11703d

View file

@ -339,6 +339,14 @@ void gs_frame::handle_shortcut(gui::shortcuts::shortcut shortcut_key, const QKey
default: break; // unreachable
}
if (shortcut_key == gui::shortcuts::shortcut::gw_restart && !boot_current_game_savestate(true, index))
{
// Normal restart if there is no savestate
Emu.Restart();
break;
}
// Reboot with savestate
boot_current_game_savestate(false, index);
break;
}