Savestates: Make Ctrl+R work when not ingame

Restore old behavior of Ctrl+R making it restart emulation when stoppped.
This commit is contained in:
Eladash 2022-10-03 11:23:24 +03:00 committed by Ivan
parent 9b5cc7cda7
commit f34773ed73
2 changed files with 18 additions and 8 deletions

View file

@ -279,6 +279,12 @@ void gs_frame::keyPressEvent(QKeyEvent *keyEvent)
case Qt::Key_R:
if (keyEvent->modifiers() == Qt::ControlModifier && !m_disable_kb_hotkeys)
{
if (Emu.IsStopped())
{
Emu.Restart();
return;
}
extern bool boot_last_savestate();
boot_last_savestate();
}