1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-22 18:26:39 +00:00

FIx small overlook.

This commit is contained in:
Pablo Curiel 2020-07-22 21:34:13 -04:00
parent c8c062e7fa
commit e7f2c927c2

View file

@ -353,7 +353,7 @@ bool ncaEncryptHeader(NcaContext *ctx)
Aes128XtsContext hdr_aes_ctx = {0}, nca0_fs_header_ctx = {0};
/* Encrypt NCA key area. */
if (!ncaEncryptKeyArea(ctx))
if (!ctx->rights_id_available && !ncaEncryptKeyArea(ctx))
{
LOGFILE("Error encrypting NCA \"%s\" key area!", ctx->content_id_str);
return false;