mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-24 11:49:05 +02:00
Fix for new bug in GetDirListing, oops
This commit is contained in:
1 parent
87dcf60ed0
commit
96406364ca
2 files changed
+3
-1
No files matched your search
@@ -662,8 +662,9 @@ u64 MetaFileSystem::getDirSize(const std::string &dirPath) {
|
||||
for (auto file : allFiles) {
|
||||
if (file.name == "." || file.name == "..")
|
||||
continue;
|
||||
_assert_(!file.name.empty());
|
||||
if (file.type == FILETYPE_DIRECTORY) {
|
||||
result += getDirSize(dirPath + file.name + "/");
|
||||
result += getDirSize(dirPath + file.name);
|
||||
} else {
|
||||
result += file.size;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user