Fix config path in Emu.Restart()

This commit is contained in:
Megamouse 2023-07-25 08:27:17 +02:00 committed by Elad Ashkenazi
parent 13575029c0
commit 73c3d5fc81
1 changed files with 2 additions and 2 deletions

View File

@ -2994,14 +2994,14 @@ game_boot_result Emulator::Restart(bool graceful)
if (!IsStopped())
{
auto save_args = std::make_tuple(argv, envp, data, disc, klic, hdd1, m_config_mode, m_config_mode);
auto save_args = std::make_tuple(argv, envp, data, disc, klic, hdd1, m_config_mode, m_config_path);
if (graceful)
GracefulShutdown(false, false);
else
Kill(false);
std::tie(argv, envp, data, disc, klic, hdd1, m_config_mode, m_config_mode) = std::move(save_args);
std::tie(argv, envp, data, disc, klic, hdd1, m_config_mode, m_config_path) = std::move(save_args);
}
else
{