mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
System: fix config path in restore_on_no_boot
This commit is contained in:
parent
51a30977d2
commit
11487cd591
1 changed files with 2 additions and 2 deletions
|
@ -731,13 +731,13 @@ game_boot_result Emulator::GetElfPathFromDir(std::string& elf_path, const std::s
|
||||||
|
|
||||||
game_boot_result Emulator::BootGame(const std::string& path, const std::string& title_id, bool direct, cfg_mode config_mode, const std::string& config_path)
|
game_boot_result Emulator::BootGame(const std::string& path, const std::string& title_id, bool direct, cfg_mode config_mode, const std::string& config_path)
|
||||||
{
|
{
|
||||||
auto save_args = std::make_tuple(m_path, argv, envp, data, disc, klic, hdd1, m_config_mode, m_config_mode);
|
auto save_args = std::make_tuple(m_path, argv, envp, data, disc, klic, hdd1, m_config_mode, m_config_path);
|
||||||
|
|
||||||
auto restore_on_no_boot = [&](game_boot_result result)
|
auto restore_on_no_boot = [&](game_boot_result result)
|
||||||
{
|
{
|
||||||
if (IsStopped() || result != game_boot_result::no_errors)
|
if (IsStopped() || result != game_boot_result::no_errors)
|
||||||
{
|
{
|
||||||
std::tie(m_path, argv, envp, data, disc, klic, hdd1, m_config_mode, m_config_mode) = std::move(save_args);
|
std::tie(m_path, argv, envp, data, disc, klic, hdd1, m_config_mode, m_config_path) = std::move(save_args);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue