Skip to content

Commit

Permalink
Fix DSiWare cheats not working on 3DS
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Nov 12, 2023
1 parent 43839d3 commit 36a5b09
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion retail/bootloaderi/source/arm7/main.arm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 0 additions & 2 deletions retail/cardenginei/arm7_dsiware/source/cardengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36a5b09

Please sign in to comment.