summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/filesystem
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-12-09 20:05:16 +0100
committerLiam <byteslice@airmail.cc>2023-12-09 20:05:16 +0100
commitd597383ab2558f27e91953035350c2ed05dcbd50 (patch)
treeca4e398736f7b0f9bc43d4f59c583f1b7f2c60db /src/core/hle/service/filesystem
parentMerge pull request #12289 from german77/aruid (diff)
downloadyuzu-d597383ab2558f27e91953035350c2ed05dcbd50.tar
yuzu-d597383ab2558f27e91953035350c2ed05dcbd50.tar.gz
yuzu-d597383ab2558f27e91953035350c2ed05dcbd50.tar.bz2
yuzu-d597383ab2558f27e91953035350c2ed05dcbd50.tar.lz
yuzu-d597383ab2558f27e91953035350c2ed05dcbd50.tar.xz
yuzu-d597383ab2558f27e91953035350c2ed05dcbd50.tar.zst
yuzu-d597383ab2558f27e91953035350c2ed05dcbd50.zip
Diffstat (limited to 'src/core/hle/service/filesystem')
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp
index 126cd6ffd..b1310d6e4 100644
--- a/src/core/hle/service/filesystem/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp_srv.cpp
@@ -246,7 +246,13 @@ 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,
+ auto name = new_entry->GetName();
+
+ if (type == FileSys::EntryType::File && name == FileSys::GetSaveDataSizeFileName()) {
+ continue;
+ }
+
+ entries.emplace_back(name, type,
type == FileSys::EntryType::Directory ? 0 : new_entry->GetSize());
}
}