From 2af6c2dd86a5a3150a9497a75256560e6f37b8ba Mon Sep 17 00:00:00 2001 From: N2614 Date: Thu, 17 Feb 2011 02:50:48 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=81=AE?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E7=A2=BA=E8=AA=8D=E3=82=92=E3=81=97=E3=81=A6?= =?UTF-8?q?=E3=81=8B=E3=82=89=E6=B6=88=E5=8E=BB=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@68 385bec56-5757-e545-9c3a-d8741f4650f1 --- trunk/ConsoleDataMigration/ConsoleRestore/Importer.cpp | 8 +++++--- trunk/ConsoleDataMigration/common/FileChecker.h | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/trunk/ConsoleDataMigration/ConsoleRestore/Importer.cpp b/trunk/ConsoleDataMigration/ConsoleRestore/Importer.cpp index d01833e..6973d3f 100644 --- a/trunk/ConsoleDataMigration/ConsoleRestore/Importer.cpp +++ b/trunk/ConsoleDataMigration/ConsoleRestore/Importer.cpp @@ -731,9 +731,11 @@ void DeleteAllCheckFiles() for(u32 i = 0; i < sizeof(CHECK_FILENAME_TABLE) / sizeof(CHECK_FILENAME_TABLE[0]); i++) { - result = nn::fs::TryDeleteFile(CHECK_FILENAME_TABLE[i]); - COMMON_LOGGER_RESULT_IF_FAILED(result); - + if(common::CheckFileExists(CHECK_FILENAME_TABLE[i])) + { + result = nn::fs::TryDeleteFile(CHECK_FILENAME_TABLE[i]); + COMMON_LOGGER_RESULT_IF_FAILED(result); + } } common::SdMountManager::Unmount(); } diff --git a/trunk/ConsoleDataMigration/common/FileChecker.h b/trunk/ConsoleDataMigration/common/FileChecker.h index 2acabbc..5e9ece3 100644 --- a/trunk/ConsoleDataMigration/common/FileChecker.h +++ b/trunk/ConsoleDataMigration/common/FileChecker.h @@ -48,7 +48,7 @@ const wchar_t* const FILENAME_TABLE[EXISTS_MAX] = common::TRY_RESTORE_SAME_CONSOLE_PATHNAME }; - +bool CheckFileExists(const wchar_t* path); bool ExistsUpdateCheckedFile(); bool ExistsSerialNumberFile(); bool ExistsIVSFile();