Forgot to check the ROM size before adding the padding.

This commit is contained in:
profi200 2024-07-26 21:22:40 +02:00
parent 41db8760a6
commit 67ce019b36
No known key found for this signature in database
GPG Key ID: FD2BAB7782919B0A
1 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,8 @@ static u32 fixRomPadding(const u32 romFileSize)
}
// Fake "open bus" padding.
makeOpenBusPaddingFast((u32*)(romLoc + mirroredSize));
if(romSize < LGY_MAX_ROM_SIZE)
makeOpenBusPaddingFast((u32*)(romLoc + mirroredSize));
// We don't return the mirrored size because the db hashes are over unmirrored dumps.
return romSize;