bugfix: GUI would show emulation hasn't started incorrectly when saving a state file (fixes #1570)

The dialog message "Emulation hasn't started yet" would be incorrectly shown if you also cancelled a warning of unsafe conditions, during the save state message.
This commit is contained in:
Dimitris Panokostas 2025-01-07 23:24:22 +01:00
parent bb9dd76324
commit 861a243439
No known key found for this signature in database
GPG Key ID: 330156A68E9E0929

View File

@ -102,12 +102,15 @@ public:
//------------------------------------------
// Save current state
//------------------------------------------
if (emulating && (!unsafe || unsafe_confirmed))
if (emulating)
{
savestate_initsave(savestate_fname, 1, true, true);
save_state(savestate_fname, "...");
if (create_screenshot())
save_thumb(screenshot_filename);
if (!unsafe || unsafe_confirmed)
{
savestate_initsave(savestate_fname, 1, true, true);
save_state(savestate_fname, "...");
if (create_screenshot())
save_thumb(screenshot_filename);
}
}
else
{