From 36a5b0999dcea6861f6f67f4d0c0d453edb9e761 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Sun, 12 Nov 2023 13:36:27 -0700 Subject: [PATCH] Fix DSiWare cheats not working on 3DS --- retail/bootloaderi/source/arm7/main.arm7.c | 2 +- retail/cardenginei/arm7_dsiware/source/cardengine.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/retail/bootloaderi/source/arm7/main.arm7.c b/retail/bootloaderi/source/arm7/main.arm7.c index e78a6101d..3ae0e22aa 100644 --- a/retail/bootloaderi/source/arm7/main.arm7.c +++ b/retail/bootloaderi/source/arm7/main.arm7.c @@ -1773,7 +1773,7 @@ int arm7_main(void) { /*extern u32 savePatchV5(const cardengineArm7* ce7, const tNDSHeader* ndsHeader, u32 saveFileCluster); // SDK 5 savePatchV5((cardengineArm7*)ce7Location, ndsHeader, saveFileCluster);*/ - if (consoleModel > 0 && newArm7binarySize == 0x28E54) { + if (consoleModel > 0) { cheatEngineOffset = CHEAT_ENGINE_TWLSDK_LOCATION_3DS; } diff --git a/retail/cardenginei/arm7_dsiware/source/cardengine.c b/retail/cardenginei/arm7_dsiware/source/cardengine.c index 01b2b9663..137b33f2e 100644 --- a/retail/cardenginei/arm7_dsiware/source/cardengine.c +++ b/retail/cardenginei/arm7_dsiware/source/cardengine.c @@ -239,11 +239,9 @@ static void initialize(void) { return; } - #ifdef UNITTWL if (consoleModel > 0 && *(u32*)CHEAT_ENGINE_TWLSDK_LOCATION_3DS == 0x3E4) { cheatEngineAddr = CHEAT_ENGINE_TWLSDK_LOCATION_3DS; } - #endif if (language >= 0 && language <= 7) { // Change language