From 2b8d4fcc04d95a49c04d3beb7565a17625274c4f Mon Sep 17 00:00:00 2001 From: d0k3 Date: Thu, 18 Oct 2018 00:11:07 +0200 Subject: [PATCH] Don't remove TMD crypto flags on non-existing contents --- arm9/source/utils/gameutil.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arm9/source/utils/gameutil.c b/arm9/source/utils/gameutil.c index 3c5ad79..d4897e3 100644 --- a/arm9/source/utils/gameutil.c +++ b/arm9/source/utils/gameutil.c @@ -1367,10 +1367,6 @@ u32 BuildCiaFromTmdFileBuffered(const char* path_tmd, const char* path_cia, bool ShowPrompt(false, "ID %016llX.%08lX\nInsert content failed", getbe64(title_id), getbe32(chunk->id)); return 1; } - } else { - // still remove encryption flag if CIA is being decrypted - bool cia_encrypt = (force_legit && (getbe16(chunk->type) & 0x01)); - if (!cia_encrypt) chunk->type[1] &= ~0x01; // remove crypto flag } }