summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/partition_filesystem.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-10-13 20:18:09 +0200
committerZach Hilman <zachhilman@gmail.com>2019-10-13 20:18:45 +0200
commite0b9ee9b941f3fb47a5b219d27c37081f379d05a (patch)
tree4b38ed385708e324d491b80377e3f88c4449b9a1 /src/core/file_sys/partition_filesystem.cpp
parentcard_image: Add accessors for raw partitions in XCI (diff)
downloadyuzu-e0b9ee9b941f3fb47a5b219d27c37081f379d05a.tar
yuzu-e0b9ee9b941f3fb47a5b219d27c37081f379d05a.tar.gz
yuzu-e0b9ee9b941f3fb47a5b219d27c37081f379d05a.tar.bz2
yuzu-e0b9ee9b941f3fb47a5b219d27c37081f379d05a.tar.lz
yuzu-e0b9ee9b941f3fb47a5b219d27c37081f379d05a.tar.xz
yuzu-e0b9ee9b941f3fb47a5b219d27c37081f379d05a.tar.zst
yuzu-e0b9ee9b941f3fb47a5b219d27c37081f379d05a.zip
Diffstat (limited to 'src/core/file_sys/partition_filesystem.cpp')
-rw-r--r--src/core/file_sys/partition_filesystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/partition_filesystem.cpp b/src/core/file_sys/partition_filesystem.cpp
index 932409d79..846986736 100644
--- a/src/core/file_sys/partition_filesystem.cpp
+++ b/src/core/file_sys/partition_filesystem.cpp
@@ -65,8 +65,8 @@ PartitionFilesystem::PartitionFilesystem(std::shared_ptr<VfsFile> file) {
std::string name(
reinterpret_cast<const char*>(&file_data[strtab_offset + entry.strtab_offset]));
- offsets[name] = content_offset + entry.offset;
- sizes[name] = entry.size;
+ offsets.insert_or_assign(name, content_offset + entry.offset);
+ sizes.insert_or_assign(name, entry.size);
pfs_files.emplace_back(std::make_shared<OffsetVfsFile>(
file, entry.size, content_offset + entry.offset, std::move(name)));