From d6490453ba9bebbc82b97c5ac9e20bf21eab01e3 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Sat, 29 Jul 2017 14:22:46 +0200 Subject: [PATCH] Fix dumping NTR AGING cart --- source/gamecart/secure_ntr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/gamecart/secure_ntr.c b/source/gamecart/secure_ntr.c index 82853ff..082c5fb 100644 --- a/source/gamecart/secure_ntr.c +++ b/source/gamecart/secure_ntr.c @@ -322,7 +322,10 @@ bool NTR_Secure_Init (u8* header, u32 CartID, int iCardDevice) if(!iCardDevice) //CycloDS doesn't like the dsi secure area being decrypted { - NTR_DecryptSecureArea (iGameCode, iCardHash, nCardHash, iKeyCode, secureArea, iCardDevice); + if(secureArea[0] != 0x72636e65/*'encr'*/ || secureArea[1] != 0x6a624f79/*'yObj'*/) // already decrypted? + { + NTR_DecryptSecureArea (iGameCode, iCardHash, nCardHash, iKeyCode, secureArea, iCardDevice); + } } //Debug("secure area %08X %08X", secureArea[0], secureArea[1]);