Skip to content

Commit

Permalink
System.cpp: Minor regression fix (#12874)
Browse files Browse the repository at this point in the history
Do not move savestate if the actual boot is unsuccessful.
  • Loading branch information
elad335 committed Oct 23, 2022
1 parent 9f3f619 commit 1a9e38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcs3/Emu/System.cpp
Expand Up @@ -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<std::string>{m_ar ? path : "", m_title_id.empty() ? "" : get_savestate_path(m_title_id, path)})
{
Expand Down

0 comments on commit 1a9e38a

Please sign in to comment.