mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 01:38:37 +12:00
System.cpp: Minor regression fix (#12874)
Do not move savestate if the actual boot is unsuccessful.
This commit is contained in:
parent
9f3f619774
commit
1a9e38a1dd
1 changed files with 1 additions and 1 deletions
|
@ -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)})
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue