Fix PS1 game_path

Don't assume local path has '/dev_hdd0' in it.
This commit is contained in:
Nekotekina 2020-03-26 18:32:22 +03:00
parent 36d8553f9c
commit 17a9ce6fb9
1 changed files with 2 additions and 2 deletions

View File

@ -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 ?