summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/submission_package.cpp
diff options
context:
space:
mode:
authorDavid <25727384+ogniK5377@users.noreply.github.com>2020-07-01 06:16:26 +0200
committerGitHub <noreply@github.com>2020-07-01 06:16:26 +0200
commit3bb63bc0b364ed10d478102d3174f55486438716 (patch)
treec8ecf8b20b877bd08701e0213e446e4bb9a8660c /src/core/file_sys/submission_package.cpp
parentMerge pull request #4153 from ogniK5377/prepo-multibuf (diff)
parentcrypto: Make KeyManager a singleton class (diff)
downloadyuzu-3bb63bc0b364ed10d478102d3174f55486438716.tar
yuzu-3bb63bc0b364ed10d478102d3174f55486438716.tar.gz
yuzu-3bb63bc0b364ed10d478102d3174f55486438716.tar.bz2
yuzu-3bb63bc0b364ed10d478102d3174f55486438716.tar.lz
yuzu-3bb63bc0b364ed10d478102d3174f55486438716.tar.xz
yuzu-3bb63bc0b364ed10d478102d3174f55486438716.tar.zst
yuzu-3bb63bc0b364ed10d478102d3174f55486438716.zip
Diffstat (limited to 'src/core/file_sys/submission_package.cpp')
-rw-r--r--src/core/file_sys/submission_package.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/submission_package.cpp b/src/core/file_sys/submission_package.cpp
index ef3084681..c35a0d10b 100644
--- a/src/core/file_sys/submission_package.cpp
+++ b/src/core/file_sys/submission_package.cpp
@@ -21,7 +21,7 @@
namespace FileSys {
namespace {
void SetTicketKeys(const std::vector<VirtualFile>& files) {
- Core::Crypto::KeyManager keys;
+ Core::Crypto::KeyManager& keys = Core::Crypto::KeyManager::instance();
for (const auto& ticket_file : files) {
if (ticket_file == nullptr) {
@@ -285,7 +285,7 @@ void NSP::ReadNCAs(const std::vector<VirtualFile>& files) {
continue;
}
- auto next_nca = std::make_shared<NCA>(std::move(next_file), nullptr, 0, keys);
+ 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();
}