mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 00:04:49 +02:00
Fix for new bug in GetDirListing, oops
This commit is contained in:
@@ -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