OpenToonz - An open-source full-featured 2D animation creation software
C
Change backup naming convention to use .bak
manongjohn3d043c55387d
diff --git a/toonz/sources/toonzlib/toonzscene.cpp b/toonz/sources/toonzlib/toonzscene.cppindex 8fdeff387..5dab4bbc6 100644--- a/toonz/sources/toonzlib/toonzscene.cpp+++ b/toonz/sources/toonzlib/toonzscene.cpp@@ -172,7 +172,7 @@ void deleteUntitledScene(const TFilePath &fp) {static void saveBackup(TFilePath path) {try {- TFilePath backup = path.withName(path.getName() + "_backup");+ TFilePath backup = path.withType(path.getType() + ".bak");if (TSystem::doesExistFileOrLevel(backup))TSystem::removeFileOrLevel_throw(backup);TSystem::copyFileOrLevel_throw(backup, path);diff --git a/toonz/sources/toonzlib/txshsimplelevel.cpp b/toonz/sources/toonzlib/txshsimplelevel.cppindex 8b5bac1c8..272574e9b 100644--- a/toonz/sources/toonzlib/txshsimplelevel.cpp+++ b/toonz/sources/toonzlib/txshsimplelevel.cpp@@ -1375,7 +1375,7 @@ void TXshSimpleLevel::save() {static void saveBackup(TFilePath path) {try {- TFilePath backup = path.withName(path.getName() + "_backup");+ TFilePath backup = path.withType(path.getType() + ".bak");if (TSystem::doesExistFileOrLevel(backup))TSystem::removeFileOrLevel_throw(backup);TSystem::copyFileOrLevel_throw(backup, path);