mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-14 12:40:29 +01:00
Qt: Restart game even if there's no savestate when using the restart shortcut
This commit is contained in:
parent
cf94be2aac
commit
d5bf11703d
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue