mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-20 15:23:22 +02:00
core:filesystem: speed up IDirectory service
This commit is contained in:
parent
7fab7b829c
commit
bd018e0123
@ -246,7 +246,8 @@ static void BuildEntryIndex(std::vector<FileSys::Entry>& entries, const std::vec
|
|||||||
entries.reserve(entries.size() + new_data.size());
|
entries.reserve(entries.size() + new_data.size());
|
||||||
|
|
||||||
for (const auto& new_entry : new_data) {
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user