Fix base NCA titlekey loading failure (closes #48)

This commit is contained in:
Michael Scire 2018-08-16 23:04:27 -07:00
parent 0269d0b91b
commit a4e8ab6322

1
main.c
View file

@ -463,6 +463,7 @@ int main(int argc, char **argv) {
case FILETYPE_NCA: {
if (nca_ctx.tool_ctx->base_nca_ctx != NULL) {
memcpy(&base_ctx.settings.keyset, &tool_ctx.settings.keyset, sizeof(nca_keyset_t));
base_ctx.settings.known_titlekeys = tool_ctx.settings.known_titlekeys;
nca_ctx.tool_ctx->base_nca_ctx->tool_ctx = &base_ctx;
nca_process(nca_ctx.tool_ctx->base_nca_ctx);
int found_romfs = 0;