summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/card_image.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-11-25 00:27:22 +0100
committerGitHub <noreply@github.com>2020-11-25 00:27:22 +0100
commit0832da3e4054d0b47c39e95553b5f3be5848eae9 (patch)
tree1e7688670225c60bbcbc2827cf427a67e1686404 /src/core/file_sys/card_image.cpp
parenthle: services: Fix a crash with improper NVFlinger lifetime management. (#4977) (diff)
parentfrontend: yuzu (qt): Register a callback for ExecuteProgram. (diff)
downloadyuzu-0832da3e4054d0b47c39e95553b5f3be5848eae9.tar
yuzu-0832da3e4054d0b47c39e95553b5f3be5848eae9.tar.gz
yuzu-0832da3e4054d0b47c39e95553b5f3be5848eae9.tar.bz2
yuzu-0832da3e4054d0b47c39e95553b5f3be5848eae9.tar.lz
yuzu-0832da3e4054d0b47c39e95553b5f3be5848eae9.tar.xz
yuzu-0832da3e4054d0b47c39e95553b5f3be5848eae9.tar.zst
yuzu-0832da3e4054d0b47c39e95553b5f3be5848eae9.zip
Diffstat (limited to 'src/core/file_sys/card_image.cpp')
-rw-r--r--src/core/file_sys/card_image.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/file_sys/card_image.cpp b/src/core/file_sys/card_image.cpp
index 956da68f7..8dee5590b 100644
--- a/src/core/file_sys/card_image.cpp
+++ b/src/core/file_sys/card_image.cpp
@@ -29,7 +29,7 @@ constexpr std::array partition_names{
"logo",
};
-XCI::XCI(VirtualFile file_)
+XCI::XCI(VirtualFile file_, std::size_t program_index)
: file(std::move(file_)), program_nca_status{Loader::ResultStatus::ErrorXCIMissingProgramNCA},
partitions(partition_names.size()),
partitions_raw(partition_names.size()), keys{Core::Crypto::KeyManager::Instance()} {
@@ -62,7 +62,8 @@ XCI::XCI(VirtualFile file_)
}
secure_partition = std::make_shared<NSP>(
- main_hfs.GetFile(partition_names[static_cast<std::size_t>(XCIPartition::Secure)]));
+ main_hfs.GetFile(partition_names[static_cast<std::size_t>(XCIPartition::Secure)]),
+ program_index);
ncas = secure_partition->GetNCAsCollapsed();
program =