From 3d043c55387dc59330737ecd97e0a74993de2b8d Mon Sep 17 00:00:00 2001 From: manongjohn Date: Feb 09 2019 01:11:06 +0000 Subject: Change backup naming convention to use .bak --- diff --git a/toonz/sources/toonzlib/toonzscene.cpp b/toonz/sources/toonzlib/toonzscene.cpp index 8fdeff3..5dab4bb 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.cpp index 8b5bac1..272574e 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);