From 97b5289f15cc1e654d42ec9703426e7afdadbb04 Mon Sep 17 00:00:00 2001 From: ElBread3 <92335081+ElBread3@users.noreply.github.com> Date: Sat, 12 Oct 2024 09:53:47 -0500 Subject: [PATCH] use addGameInstallDir here (#1354) --- src/common/config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/config.cpp b/src/common/config.cpp index 78da372e..17862e6a 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -538,12 +538,12 @@ void load(const std::filesystem::path& path) { // TODO Migration code, after a major release this should be removed. auto old_game_install_dir = toml::find_fs_path_or(gui, "installDir", {}); if (!old_game_install_dir.empty()) { - settings_install_dirs.emplace_back(std::filesystem::path{old_game_install_dir}); + addGameInstallDir(std::filesystem::path{old_game_install_dir}); } else { const auto install_dir_array = toml::find_or>(gui, "installDirs", {}); for (const auto& dir : install_dir_array) { - settings_install_dirs.emplace_back(std::filesystem::path{dir}); + addGameInstallDir(std::filesystem::path{dir}); } }