summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-09-18 02:44:51 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-09-18 02:44:51 +0200
commit41c2f5200c9b1613e0843df0a54814ffaddddff5 (patch)
treea293dde31a25716a5a94bd565dede8581bd84532
parentMerge pull request #4323 from ReinUsesLisp/no-spin (diff)
downloadyuzu-41c2f5200c9b1613e0843df0a54814ffaddddff5.tar
yuzu-41c2f5200c9b1613e0843df0a54814ffaddddff5.tar.gz
yuzu-41c2f5200c9b1613e0843df0a54814ffaddddff5.tar.bz2
yuzu-41c2f5200c9b1613e0843df0a54814ffaddddff5.tar.lz
yuzu-41c2f5200c9b1613e0843df0a54814ffaddddff5.tar.xz
yuzu-41c2f5200c9b1613e0843df0a54814ffaddddff5.tar.zst
yuzu-41c2f5200c9b1613e0843df0a54814ffaddddff5.zip
-rw-r--r--src/core/file_sys/submission_package.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/file_sys/submission_package.cpp b/src/core/file_sys/submission_package.cpp
index b9ce93b7c..aab957bf2 100644
--- a/src/core/file_sys/submission_package.cpp
+++ b/src/core/file_sys/submission_package.cpp
@@ -267,9 +267,9 @@ void NSP::ReadNCAs(const std::vector<VirtualFile>& files) {
}
const CNMT cnmt(inner_file);
- auto& ncas_title = ncas[cnmt.GetTitleID()];
- ncas_title[{cnmt.GetType(), ContentRecordType::Meta}] = nca;
+ ncas[cnmt.GetTitleID()][{cnmt.GetType(), ContentRecordType::Meta}] = nca;
+
for (const auto& rec : cnmt.GetContentRecords()) {
const auto id_string = Common::HexToString(rec.nca_id, false);
auto next_file = pfs->GetFile(fmt::format("{}.nca", id_string));
@@ -287,12 +287,12 @@ void NSP::ReadNCAs(const std::vector<VirtualFile>& files) {
auto next_nca = std::make_shared<NCA>(std::move(next_file), nullptr, 0);
if (next_nca->GetType() == NCAContentType::Program) {
- program_status[cnmt.GetTitleID()] = next_nca->GetStatus();
+ program_status[next_nca->GetTitleId()] = next_nca->GetStatus();
}
if (next_nca->GetStatus() == Loader::ResultStatus::Success ||
(next_nca->GetStatus() == Loader::ResultStatus::ErrorMissingBKTRBaseRomFS &&
- (cnmt.GetTitleID() & 0x800) != 0)) {
- ncas_title[{cnmt.GetType(), rec.type}] = std::move(next_nca);
+ (next_nca->GetTitleId() & 0x800) != 0)) {
+ ncas[next_nca->GetTitleId()][{cnmt.GetType(), rec.type}] = std::move(next_nca);
}
}