From f2dd9e67d81e9648d7b93b9195b1c18ed532c1d2 Mon Sep 17 00:00:00 2001 From: Simo <136233872+Simo3ds@users.noreply.github.com> Date: Sat, 4 May 2024 23:23:39 +0200 Subject: [PATCH] sync to last commit-12 Signed-off-by: Simo <136233872+Simo3ds@users.noreply.github.com> --- arm9/source/crypto.c | 2 +- arm9/source/crypto.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arm9/source/crypto.c b/arm9/source/crypto.c index fc2f6331..b3742b4c 100755 --- a/arm9/source/crypto.c +++ b/arm9/source/crypto.c @@ -339,7 +339,7 @@ int ctrNandInit(void) __attribute__((aligned(4))) u8 cid[AES_BLOCK_SIZE], shaSum[SHA_256_HASH_SIZE]; - if ((getFileSize(CID_PATH) > 0) && (CONFIG(HARDWAREPATCHING))) + if ((nandcid) && (CONFIG(HARDWAREPATCHING))) { memcpy(cid, (u32*)__NANDCID_ADDR, sizeof(cid)); diff --git a/arm9/source/crypto.h b/arm9/source/crypto.h index 08453cd3..16e14c28 100755 --- a/arm9/source/crypto.h +++ b/arm9/source/crypto.h @@ -114,6 +114,7 @@ #define SHA_1_HASH_SIZE (160 / 8) extern FirmwareSource ctrNandLocation; +extern bool nandcid; void sha(void *res, const void *src, u32 size, u32 mode);