diff --git a/src/patch.cpp b/src/patch.cpp index 344a03e6..cc5e0241 100644 --- a/src/patch.cpp +++ b/src/patch.cpp @@ -253,7 +253,6 @@ void Manager::saveAutosave() { json_dumpf(rootJ, file, JSON_INDENT(2)); std::fclose(file); - system::remove(patchPath); system::rename(tmpPath, patchPath); } diff --git a/src/settings.cpp b/src/settings.cpp index 68f5f48f..798d656a 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -584,7 +584,6 @@ void save(std::string path) { json_dumpf(rootJ, file, JSON_INDENT(2)); std::fclose(file); - system::remove(path); system::rename(tmpPath, path); }