Fixed another error in pre-previous commit: ScanDirectoryTree should call itself recursively, not AddDirectoryEntries.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@649 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
b79bd60b7c
commit
c688f95374
|
@ -475,7 +475,7 @@ static u32 ScanDirectoryTree(const std::string& _Directory, FSTEntry& parentEntr
|
||||||
entry.physicalName = _Directory + "\\" + entry.virtualName;
|
entry.physicalName = _Directory + "\\" + entry.virtualName;
|
||||||
if(entry.isDirectory)
|
if(entry.isDirectory)
|
||||||
{
|
{
|
||||||
u32 childEntries = AddDirectoryEntries(entry.physicalName, entry);
|
u32 childEntries = ScanDirectoryTree(entry.physicalName, entry);
|
||||||
entry.size = childEntries;
|
entry.size = childEntries;
|
||||||
foundEntries += childEntries;
|
foundEntries += childEntries;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue