Browse Source

Don't remove settings and autosave patch before overwriting it with new file.

tags/v2.6.5
Andrew Belt 7 months ago
parent
commit
56542273be
2 changed files with 0 additions and 2 deletions
  1. +0
    -1
      src/patch.cpp
  2. +0
    -1
      src/settings.cpp

+ 0
- 1
src/patch.cpp View File

@@ -253,7 +253,6 @@ void Manager::saveAutosave() {


json_dumpf(rootJ, file, JSON_INDENT(2)); json_dumpf(rootJ, file, JSON_INDENT(2));
std::fclose(file); std::fclose(file);
system::remove(patchPath);
system::rename(tmpPath, patchPath); system::rename(tmpPath, patchPath);
} }




+ 0
- 1
src/settings.cpp View File

@@ -584,7 +584,6 @@ void save(std::string path) {


json_dumpf(rootJ, file, JSON_INDENT(2)); json_dumpf(rootJ, file, JSON_INDENT(2));
std::fclose(file); std::fclose(file);
system::remove(path);
system::rename(tmpPath, path); system::rename(tmpPath, path);
} }




Loading…
Cancel
Save