mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Fix another GetFileInfo loop (GetFilesInDir now does return sizes)
This commit is contained in:
1 parent
1eef8973c7
commit
cd79a1d92f
1 file changed
+1
-4
@@ -289,10 +289,7 @@ int64_t GetDirectoryRecursiveSize(const Path &path, const char *filter, int flag
|
||||
std::vector<FileInfo> fileInfo;
|
||||
GetFilesInDir(path, &fileInfo, filter, flags);
|
||||
int64_t sizeSum = 0;
|
||||
// Note: GetFilesInDir does not fill in fileSize.
|
||||
for (size_t i = 0; i < fileInfo.size(); i++) {
|
||||
FileInfo finfo;
|
||||
GetFileInfo(fileInfo[i].fullName, &finfo);
|
||||
for (const auto &finfo : fileInfo) {
|
||||
if (!finfo.isDirectory)
|
||||
sizeSum += finfo.size;
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user