diff options
author | bunnei <bunneidev@gmail.com> | 2022-08-23 22:56:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 22:56:05 +0200 |
commit | 3e1426c9a377a5a615d34e41d2f612d2dcb54613 (patch) | |
tree | 166cb6a021e8c54076a6a2d98c048a8eb4226e0a /src/core/hle | |
parent | yuzu: Force camera output to be saved on a buffer (#8805) (diff) | |
parent | core:filesystem: speed up IDirectory service (diff) | |
download | yuzu-3e1426c9a377a5a615d34e41d2f612d2dcb54613.tar yuzu-3e1426c9a377a5a615d34e41d2f612d2dcb54613.tar.gz yuzu-3e1426c9a377a5a615d34e41d2f612d2dcb54613.tar.bz2 yuzu-3e1426c9a377a5a615d34e41d2f612d2dcb54613.tar.lz yuzu-3e1426c9a377a5a615d34e41d2f612d2dcb54613.tar.xz yuzu-3e1426c9a377a5a615d34e41d2f612d2dcb54613.tar.zst yuzu-3e1426c9a377a5a615d34e41d2f612d2dcb54613.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp index fae6e5aff..e23eae36a 100644 --- a/src/core/hle/service/filesystem/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp_srv.cpp @@ -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()); } } |