Skip to content
Snippets Groups Projects
Unverified Commit 3e1426c9 authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #8804 from vonchenplus/speed_up_idirectory_services

core:filesystem: speed up IDirectory service
parents db2335e2 bd018e01
No related branches found
No related tags found
No related merge requests found
......@@ -246,7 +246,8 @@ static void BuildEntryIndex(std::vector<FileSys::Entry>& entries, const std::vec
entries.reserve(entries.size() + new_data.size());
for (const auto& new_entry : new_data) {
entries.emplace_back(new_entry->GetName(), type, new_entry->GetSize());
entries.emplace_back(new_entry->GetName(), type,
type == FileSys::EntryType::Directory ? 0 : new_entry->GetSize());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment