From 17a9ce6fb9236bef24f3ed1bb3ce7b7df761ae85 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Thu, 26 Mar 2020 18:32:22 +0300 Subject: [PATCH] Fix PS1 game_path Don't assume local path has '/dev_hdd0' in it. --- rpcs3/Emu/System.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index d56f699deb..9253fdbe77 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -1135,7 +1135,7 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool // PS1 Classic located in dev_hdd0/game sys_log.notice("PS1 Game: %s, %s", m_title_id, m_title); - std::string gamePath = m_path.substr(m_path.find("/dev_hdd0/game/"), 24); + const std::string game_path = "/dev_hdd0/game/" + m_path.substr(hdd0_game.size(), 9); sys_log.notice("Forcing manual lib loading mode"); g_cfg.core.lib_loading.from_string(fmt::format("%s", lib_loading_type::manual)); @@ -1147,7 +1147,7 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool argv[2] = m_title_id + "_mc2.VM1"; // virtual mc 2 /dev_hdd0/savedata/vmc/%argv[2]% argv[3] = "0082"; // region target argv[4] = "1600"; // ??? arg4 600 / 1200 / 1600, resolution scale? (purely a guess, the numbers seem to match closely to resolutions tho) - argv[5] = gamePath; // ps1 game folder path (not the game serial) + argv[5] = game_path; // ps1 game folder path (not the game serial) argv[6] = "1"; // ??? arg6 1 ? argv[7] = "2"; // ??? arg7 2 -- full screen on/off 2/1 ? argv[8] = "1"; // ??? arg8 2 -- smoothing on/off = 1/0 ?