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:
Maarten ter Huurne 2008-09-23 22:31:39 +00:00
parent b79bd60b7c
commit c688f95374
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }