summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-08 23:49:57 +0200
committerLioncash <mathew1800@gmail.com>2018-08-09 00:51:52 +0200
commit7353cfc7813c960e7fdb0b33829865c606f98c84 (patch)
tree65c5bc3a27c0df3229145afb2552993ba72a46be /src/core/hle
parentfsp_srv: Emplace entries first when building index instead of emplacing last (diff)
downloadyuzu-7353cfc7813c960e7fdb0b33829865c606f98c84.tar
yuzu-7353cfc7813c960e7fdb0b33829865c606f98c84.tar.gz
yuzu-7353cfc7813c960e7fdb0b33829865c606f98c84.tar.bz2
yuzu-7353cfc7813c960e7fdb0b33829865c606f98c84.tar.lz
yuzu-7353cfc7813c960e7fdb0b33829865c606f98c84.tar.xz
yuzu-7353cfc7813c960e7fdb0b33829865c606f98c84.tar.zst
yuzu-7353cfc7813c960e7fdb0b33829865c606f98c84.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp
index 4110e67b4..1470f9017 100644
--- a/src/core/hle/service/filesystem/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp_srv.cpp
@@ -196,11 +196,7 @@ 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) {
- auto& entry = entries.emplace_back();
- entry.filename[0] = '\0';
- std::strncat(entry.filename, new_entry->GetName().c_str(), FileSys::FILENAME_LENGTH - 1);
- entry.type = type;
- entry.file_size = new_entry->GetSize();
+ entries.emplace_back(new_entry->GetName(), type, new_entry->GetSize());
}
}