diff --git a/src/common/config.cpp b/src/common/config.cpp index e13ef59a6..c17f404d6 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -539,6 +539,9 @@ void load(const std::filesystem::path& path) { if (!old_game_install_dir.empty()) { addGameInstallDir(old_game_install_dir); gui.as_table().erase("installDir"); + std::ofstream file(path, std::ios::out); + file << data; + file.close(); } const auto install_dir_array =