diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2019-10-13 14:18:09 -0400 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2019-10-13 14:18:45 -0400 |
| commit | e0b9ee9b941f3fb47a5b219d27c37081f379d05a (patch) | |
| tree | 4b38ed385708e324d491b80377e3f88c4449b9a1 /src/core/file_sys/partition_filesystem.cpp | |
| parent | c4f3400bead6b666b803e3990a4aba625a2dfe70 (diff) | |
card_image: Implement system update commands in XCI
Diffstat (limited to 'src/core/file_sys/partition_filesystem.cpp')
| -rw-r--r-- | src/core/file_sys/partition_filesystem.cpp | 4 |
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))); |
