aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/card_image.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-11-01 20:23:38 -0400
committerZach Hilman <zachhilman@gmail.com>2018-11-01 20:23:38 -0400
commit97d425c3047e67cc36e7dec95cbcbc9236c6573f (patch)
tree78dd30139846e0913cd1099bc60a9c07b77fe859 /src/core/file_sys/card_image.h
parente20db909eeb7dc6670924032e7cbb4add4652908 (diff)
file_sys: Use common KeyManager in NCA container types
Creates a single KeyManager for the entire container and then passes it into the NCA constructor, eliminating several unnecessary KeyManager reads.
Diffstat (limited to 'src/core/file_sys/card_image.h')
-rw-r--r--src/core/file_sys/card_image.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/file_sys/card_image.h b/src/core/file_sys/card_image.h
index 8f62571cf..25f5914b6 100644
--- a/src/core/file_sys/card_image.h
+++ b/src/core/file_sys/card_image.h
@@ -9,6 +9,7 @@
#include <vector>
#include "common/common_types.h"
#include "common/swap.h"
+#include "core/crypto/key_manager.h"
#include "core/file_sys/vfs.h"
namespace Loader {
@@ -107,5 +108,7 @@ private:
std::shared_ptr<NSP> secure_partition;
std::shared_ptr<NCA> program;
std::vector<std::shared_ptr<NCA>> ncas;
+
+ Core::Crypto::KeyManager keys;
};
} // namespace FileSys