Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Dec 29, 2024
1 parent 48b28ba commit 527d508
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions retail/bootloaderi/source/arm7/main.arm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,10 +907,9 @@ static bool isROMLoadableInRAM(const tDSiHeader* dsiHeader, const tNDSHeader* nd
if (!usesCloneboot) {
romSize -= romOffset;
if (baseArm9OvlSize > 0 && baseArm9OvlSrc < baseArm7Off) {
romSize -= baseArm7Size;
while ((romSize % 0x4000) != 0) {
romSize++;
}
romSize = baseRomSize;
romSize -= (baseArm7Off + baseArm7Size);
romSize += (overlaysSize/0x4000)*0x4000;
}
}
res = ((consoleModel> 0 && twlType && ((u32)dsiHeader->arm9iromOffset - romOffset)+ioverlaysSize <= (cheatsEnabled ? dev_CACHE_ADRESS_SIZE_TWLSDK_CHEAT : dev_CACHE_ADRESS_SIZE_TWLSDK))
Expand Down

0 comments on commit 527d508

Please sign in to comment.