diff --git a/src/common/config.cpp b/src/common/config.cpp index f5f1416a9..ba3c1174d 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -535,15 +535,16 @@ void load(const std::filesystem::path& path) { m_window_size_W = toml::find_or(gui, "mw_width", 0); m_window_size_H = toml::find_or(gui, "mw_height", 0); - auto old_game_install_dir = toml::find_fs_path_or(gui, "installDir", {}); - if (!old_game_install_dir.empty()) { - addGameInstallDir(old_game_install_dir); - } - const auto install_dir_array = toml::find_or>(gui, "installDirs", {}); for (const auto& dir : install_dir_array) { - addGameInstallDir(dir); + settings_install_dirs.emplace_back(std::filesystem::path{dir}); + } + + // 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()) { + addGameInstallDir(old_game_install_dir); } settings_addon_install_dir = toml::find_fs_path_or(gui, "addonInstallDir", {});