Skip to content

Commit

Permalink
hb: Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Mar 18, 2024
1 parent 8f27d9e commit ac24b62
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hb/bootloader/source/arm7/patch_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ patchOffsetCacheContents patchOffsetCache;
void patchBinary(const tNDSHeader* ndsHeader) {
const char* romTid = getRomTid(ndsHeader);

if (!(REG_SCFG_ROM & BIT(9))) {
// Moonshell Ver 1.71
if (strcmp(romTid, "####") == 0 && ndsHeader->headerCRC16 == 0xD151) {
// Fix ARM7 "farmware" error
*(u32*)0x037F93C4 = 0x178;
}
}

// Moonshell Ver 2 Beta 8.1/beta.9 & Ver 2.01+1
/* if (strcmp(romTid, "####") == 0 && (ndsHeader->headerCRC16 == 0xD75F || ndsHeader->headerCRC16 == 0x999C)) {
// Bypass ARM9 binary check
Expand Down

0 comments on commit ac24b62

Please sign in to comment.