diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/file_sys/content_archive.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/file_sys/content_archive.cpp b/src/core/file_sys/content_archive.cpp index 2deb727cc..79e70f6ef 100644 --- a/src/core/file_sys/content_archive.cpp +++ b/src/core/file_sys/content_archive.cpp | |||
| @@ -188,11 +188,11 @@ NCA::NCA(VirtualFile file_) : file(std::move(file_)) { | |||
| 188 | header.section_tables[i].media_offset * MEDIA_OFFSET_MULTIPLIER + | 188 | header.section_tables[i].media_offset * MEDIA_OFFSET_MULTIPLIER + |
| 189 | section.romfs.ivfc.levels[IVFC_MAX_LEVEL - 1].offset; | 189 | section.romfs.ivfc.levels[IVFC_MAX_LEVEL - 1].offset; |
| 190 | const size_t romfs_size = section.romfs.ivfc.levels[IVFC_MAX_LEVEL - 1].size; | 190 | const size_t romfs_size = section.romfs.ivfc.levels[IVFC_MAX_LEVEL - 1].size; |
| 191 | const auto dec = | 191 | auto dec = |
| 192 | Decrypt(section, std::make_shared<OffsetVfsFile>(file, romfs_size, romfs_offset), | 192 | Decrypt(section, std::make_shared<OffsetVfsFile>(file, romfs_size, romfs_offset), |
| 193 | romfs_offset); | 193 | romfs_offset); |
| 194 | if (dec != nullptr) { | 194 | if (dec != nullptr) { |
| 195 | files.emplace_back(); | 195 | files.push_back(std::move(dec)); |
| 196 | romfs = files.back(); | 196 | romfs = files.back(); |
| 197 | } else { | 197 | } else { |
| 198 | status = Loader::ResultStatus::ErrorMissingKeys; | 198 | status = Loader::ResultStatus::ErrorMissingKeys; |
| @@ -204,13 +204,13 @@ NCA::NCA(VirtualFile file_) : file(std::move(file_)) { | |||
| 204 | section.pfs0.pfs0_header_offset; | 204 | section.pfs0.pfs0_header_offset; |
| 205 | u64 size = MEDIA_OFFSET_MULTIPLIER * (header.section_tables[i].media_end_offset - | 205 | u64 size = MEDIA_OFFSET_MULTIPLIER * (header.section_tables[i].media_end_offset - |
| 206 | header.section_tables[i].media_offset); | 206 | header.section_tables[i].media_offset); |
| 207 | const auto dec = | 207 | auto dec = |
| 208 | Decrypt(section, std::make_shared<OffsetVfsFile>(file, size, offset), offset); | 208 | Decrypt(section, std::make_shared<OffsetVfsFile>(file, size, offset), offset); |
| 209 | if (dec != nullptr) { | 209 | if (dec != nullptr) { |
| 210 | auto npfs = std::make_shared<PartitionFilesystem>(dec); | 210 | auto npfs = std::make_shared<PartitionFilesystem>(std::move(dec)); |
| 211 | 211 | ||
| 212 | if (npfs->GetStatus() == Loader::ResultStatus::Success) { | 212 | if (npfs->GetStatus() == Loader::ResultStatus::Success) { |
| 213 | dirs.emplace_back(npfs); | 213 | dirs.push_back(std::move(npfs)); |
| 214 | if (IsDirectoryExeFS(dirs.back())) | 214 | if (IsDirectoryExeFS(dirs.back())) |
| 215 | exefs = dirs.back(); | 215 | exefs = dirs.back(); |
| 216 | } | 216 | } |