yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #8804 from vonchenplus/speed_up_idirectory_services

core:filesystem: speed up IDirectory service
This commit is contained in:
bunnei 2022-08-23 13:56:05 -07:00 committed by GitHub
commit 3e1426c9a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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