From 23a445619b2f78c6ae1ded232fcab9b424dc1f0e Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi Date: Sat, 22 Oct 2022 14:13:02 +0300 Subject: [PATCH] Savestates: +1 Bug --- 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 dc97a85b8..54c5d8cdf 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -678,7 +678,7 @@ game_boot_result Emulator::BootGame(const std::string& path, const std::string& if (g_cfg.savestate.suspend_emu && m_ar) { - std::string old_path = path.substr(0, path.find_last_not_of(fs::delim)); + std::string old_path = path.substr(0, path.find_last_not_of(fs::delim) + 1); const usz insert_pos = old_path.find_last_of(fs::delim) + 1; const auto prefix = "used_"sv;