From 1a9e38a1dddc9180ad6ef75515b16239f3548379 Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi Date: Sun, 23 Oct 2022 18:07:44 +0300 Subject: [PATCH] System.cpp: Minor regression fix (#12874) Do not move savestate if the actual boot is unsuccessful. --- rpcs3/Emu/System.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 96d827bdcb..5f06c9120a 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -668,7 +668,7 @@ game_boot_result Emulator::BootGame(const std::string& path, const std::string& auto error = Load(title_id, add_only); - if (g_cfg.savestate.suspend_emu) + if (g_cfg.savestate.suspend_emu && error == game_boot_result::no_errors) { for (std::string old_path : std::initializer_list{m_ar ? path : "", m_title_id.empty() ? "" : get_savestate_path(m_title_id, path)}) {