From a624b6db8b37898a435fa4b7b7ecae55ae031ec8 Mon Sep 17 00:00:00 2001 From: applestash Date: Sat, 30 Aug 2014 12:56:11 +1000 Subject: [PATCH] bug fix prevented cia from "decrypting" cleartext ncch images --- makerom/cia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makerom/cia.c b/makerom/cia.c index 07eefdf..b0051af 100644 --- a/makerom/cia.c +++ b/makerom/cia.c @@ -262,7 +262,7 @@ int GetSettingsFromNcch0(cia_settings *ciaset, u32 ncch0_offset) /* Getting ncch key */ u8 *ncchkey = NULL; - if(!ciaset->content.keyNotFound || IsNcchEncrypted(hdr)){ + if(!ciaset->content.keyNotFound && IsNcchEncrypted(hdr)){ SetNcchKeys(ciaset->keys,hdr); ncchkey = ciaset->keys->aes.ncchKey0; if(ciaset->verbose){