summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/filesystem
diff options
context:
space:
mode:
authorvonchenplus <vonchenplus@gmail.com>2022-08-22 16:17:33 +0200
committervonchenplus <vonchenplus@gmail.com>2022-08-23 03:05:59 +0200
commitbd018e01235f94491385db9f018182f2ae78338d (patch)
treed199c5f1689b99eb0c8b2e72a779eb27f2bb40aa /src/core/hle/service/filesystem
parentMerge pull request #8799 from liamwhite/where-did-the-padding-go (diff)
downloadyuzu-bd018e01235f94491385db9f018182f2ae78338d.tar
yuzu-bd018e01235f94491385db9f018182f2ae78338d.tar.gz
yuzu-bd018e01235f94491385db9f018182f2ae78338d.tar.bz2
yuzu-bd018e01235f94491385db9f018182f2ae78338d.tar.lz
yuzu-bd018e01235f94491385db9f018182f2ae78338d.tar.xz
yuzu-bd018e01235f94491385db9f018182f2ae78338d.tar.zst
yuzu-bd018e01235f94491385db9f018182f2ae78338d.zip
Diffstat (limited to 'src/core/hle/service/filesystem')
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp3
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());
}
}