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@445 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
1be8960b59
commit
2ff434480d
@ -95,8 +95,12 @@ nn::Result SavedataCheckerBase::CleanUpFilesRecursively(bool* modified, std::str
|
||||
// ディレクトリの場合
|
||||
if (entry.attributes.isDirectory)
|
||||
{
|
||||
return CleanUpFilesRecursively(modified, baseName,
|
||||
result = CleanUpFilesRecursively(modified, baseName,
|
||||
currentDirectory + std::wstring(entry.entryName) + std::wstring(L"/"), erase);
|
||||
if(erase && result.IsFailure())
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
// ファイルの場合
|
||||
else
|
||||
@ -104,6 +108,7 @@ nn::Result SavedataCheckerBase::CleanUpFilesRecursively(bool* modified, std::str
|
||||
nn::fs::FileInputStream file;
|
||||
std::wstring filePath = (currentDirectory + std::wstring(entry.entryName)).c_str();
|
||||
const wchar_t* path = filePath.c_str();
|
||||
NN_LOG("%s\n", common::GetCharStr(path));
|
||||
|
||||
result = file.TryInitialize(path);
|
||||
if(result.IsFailure())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user