Skip to content

Commit

Permalink
use addGameInstallDir here
Browse files Browse the repository at this point in the history
  • Loading branch information
ElBread3 committed Oct 12, 2024
1 parent b412cb4 commit 8771498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::vector<std::string>>(gui, "installDirs", {});
for (const auto& dir : install_dir_array) {
settings_install_dirs.emplace_back(std::filesystem::path{dir});
addGameInstallDir(std::filesystem::path{dir});
}
}

Expand Down

0 comments on commit 8771498

Please sign in to comment.