Skip to content

Commit

Permalink
Derp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Dec 21, 2024
1 parent b1b6ce7 commit 34484a9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions retail/bootloaderi/source/arm7/main.arm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -1182,18 +1182,28 @@ static void buildRomMap(const tNDSHeader* ndsHeader, const module_params_t* modu
}
if (romLocationChangePrep == (consoleModel > 0 ? 0x0E000000 : 0x0D000000)) {
romLocationChangePrep = sharedWramEnabled ? 0x036F8000 : 0x03700000;
readRom = true;
}
// dbg_hexa(romLocationChangePrep);

if (readRom) {
romMap[romMapLines][0] = romOffsetChange;
romMap[romMapLines][1] = romLocationChange;
romMap[romMapLines][2] = romLocationChange+romBlockSize;

/* dbg_printf(" ");
dbg_hexa(romMap[romMapLines][0]);
dbg_printf(" ");
dbg_hexa(romMap[romMapLines][1]);
dbg_printf(" ");
dbg_hexa(romMap[romMapLines][2]); */
romMapLines++;

romLocationChange = romLocationChangePrep;
romOffsetChange += romBlockSize;
romBlockSize = 0;
}
// dbg_printf("\n");
}
}

Expand Down

0 comments on commit 34484a9

Please sign in to comment.