Misc changes to ticket, cert and CIA

This commit is contained in:
Pengfei
2021-07-28 00:27:01 +08:00
parent d8c79c5d2a
commit 325832f318
7 changed files with 120 additions and 48 deletions
+4
View File
@@ -12,6 +12,7 @@
#include "core/extdata.h"
#include "core/importer.h"
#include "core/key/key.h"
#include "core/ncch/certificate.h"
#include "core/ncch/cia_builder.h"
#include "core/ncch/ncch_container.h"
#include "core/ncch/seed_db.h"
@@ -54,6 +55,9 @@ bool SDMCImporter::Init() {
if (!config.seed_db_path.empty()) {
Seeds::Load(config.seed_db_path);
}
if (!config.certs_db_path.empty()) {
Certs::Load(config.certs_db_path);
}
decryptor = std::make_unique<SDMCDecryptor>(config.sdmc_path);
cia_builder = std::make_unique<CIABuilder>();