summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/content_archive.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-08-23 20:20:37 +0200
committerLioncash <mathew1800@gmail.com>2020-08-23 23:02:55 +0200
commit01d1b5cdaff6f05aa62794816547deab977256e5 (patch)
treef4212fd69ff589b9a5957e5f4215b0b5c8771db0 /src/core/file_sys/content_archive.cpp
parentMerge pull request #4546 from lioncash/telemetry (diff)
downloadyuzu-01d1b5cdaff6f05aa62794816547deab977256e5.tar
yuzu-01d1b5cdaff6f05aa62794816547deab977256e5.tar.gz
yuzu-01d1b5cdaff6f05aa62794816547deab977256e5.tar.bz2
yuzu-01d1b5cdaff6f05aa62794816547deab977256e5.tar.lz
yuzu-01d1b5cdaff6f05aa62794816547deab977256e5.tar.xz
yuzu-01d1b5cdaff6f05aa62794816547deab977256e5.tar.zst
yuzu-01d1b5cdaff6f05aa62794816547deab977256e5.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/content_archive.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/file_sys/content_archive.cpp b/src/core/file_sys/content_archive.cpp
index 5039341c7..426fb6bb5 100644
--- a/src/core/file_sys/content_archive.cpp
+++ b/src/core/file_sys/content_archive.cpp
@@ -10,10 +10,10 @@
#include "common/logging/log.h"
#include "core/crypto/aes_util.h"
#include "core/crypto/ctr_encryption_layer.h"
+#include "core/crypto/key_manager.h"
#include "core/file_sys/content_archive.h"
#include "core/file_sys/nca_patch.h"
#include "core/file_sys/partition_filesystem.h"
-#include "core/file_sys/romfs.h"
#include "core/file_sys/vfs_offset.h"
#include "core/loader/loader.h"
@@ -119,7 +119,8 @@ static bool IsValidNCA(const NCAHeader& header) {
}
NCA::NCA(VirtualFile file_, VirtualFile bktr_base_romfs_, u64 bktr_base_ivfc_offset)
- : file(std::move(file_)), bktr_base_romfs(std::move(bktr_base_romfs_)) {
+ : file(std::move(file_)),
+ bktr_base_romfs(std::move(bktr_base_romfs_)), keys{Core::Crypto::KeyManager::Instance()} {
if (file == nullptr) {
status = Loader::ResultStatus::ErrorNullFile;
return;