Fix VolumeDirectory

Fixes the regression from a225426 and clarifies a related comment.
This commit is contained in:
JosJuice 2015-08-26 19:21:09 +02:00
parent 13526135f8
commit d276d1abbb
2 changed files with 2 additions and 1 deletions

View File

@ -499,6 +499,7 @@ FSTEntry ScanDirectoryTree(const std::string &directory, bool recursive)
entry = ScanDirectoryTree(physical_name, true);
else
entry.size = 0;
parent_entry.size += entry.size;
}
else
{

View File

@ -58,7 +58,7 @@ namespace File
struct FSTEntry
{
bool isDirectory;
u64 size; // File length or number of entries from children
u64 size; // File length, or for directories, recursive count of children
std::string physicalName; // Name on disk
std::string virtualName; // Name in FST names table
std::vector<FSTEntry> children;