Browse Source

Remove old patch before moving new temporary patch to its location.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
e2c4dc8249
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/patch.cpp

+ 1
- 0
src/patch.cpp View File

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

json_dumpf(rootJ, file, JSON_INDENT(2) | JSON_REAL_PRECISION(9));
std::fclose(file);
std::remove(path.c_str());
std::rename(tmpPath.c_str(), path.c_str());
}



Loading…
Cancel
Save