From 01e39a4e70f4a56d74f12a59dadf80e3f9a83528 Mon Sep 17 00:00:00 2001 From: connlost <4348524953.h@gmail.com> Date: Thu, 10 Oct 2024 23:00:41 +0800 Subject: [PATCH] remove installDir from config file --- src/common/config.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 =