Savestates: Fix restart when suspend mode is off

Add a new menu button for explicit exit (mostly for debug purposes)
This commit is contained in:
Eladash 2024-01-20 21:25:10 +02:00 committed by Elad.Ash
parent 01ee119c59
commit f19744ae88
4 changed files with 34 additions and 4 deletions

View file

@ -383,6 +383,14 @@ void gs_frame::handle_shortcut(gui::shortcuts::shortcut shortcut_key, const QKey
{
if (!m_disable_kb_hotkeys)
{
if (!g_cfg.savestate.suspend_emu)
{
Emu.after_kill_callback = []()
{
Emu.Restart();
};
}
Emu.Kill(false, true);
return;
}