mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
ファイルの存在確認をしてから消去するように
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
This commit is contained in:
parent
6e9d6c57c9
commit
2af6c2dd86
@ -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();
|
||||
}
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user