mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-29 15:26:35 +00:00
Merge pull request #2914 from JosJuice/fix-volumedirectory
Fix VolumeDirectory
This commit is contained in:
parent
994d13af83
commit
cc8380ee65
2 changed files with 2 additions and 1 deletions
|
@ -499,6 +499,7 @@ FSTEntry ScanDirectoryTree(const std::string &directory, bool recursive)
|
||||||
entry = ScanDirectoryTree(physical_name, true);
|
entry = ScanDirectoryTree(physical_name, true);
|
||||||
else
|
else
|
||||||
entry.size = 0;
|
entry.size = 0;
|
||||||
|
parent_entry.size += entry.size;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace File
|
||||||
struct FSTEntry
|
struct FSTEntry
|
||||||
{
|
{
|
||||||
bool isDirectory;
|
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 physicalName; // Name on disk
|
||||||
std::string virtualName; // Name in FST names table
|
std::string virtualName; // Name in FST names table
|
||||||
std::vector<FSTEntry> children;
|
std::vector<FSTEntry> children;
|
||||||
|
|
Loading…
Add table
Reference in a new issue