mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-27 13:04:21 +01:00
Snes9x - Round up calculated size to next 8k for bad hacks. (#842)
This commit is contained in:
parent
e8702bbb9d
commit
0f771aaf7a
@ -1468,7 +1468,7 @@ bool8 CMemory::LoadROMInt (int32 ROMfillSize)
|
|||||||
lo_score = ScoreLoROM(FALSE);
|
lo_score = ScoreLoROM(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
CalculatedSize = (ROMfillSize / 0x2000) * 0x2000;
|
CalculatedSize = ((ROMfillSize + 0x1fff) / 0x2000) * 0x2000;
|
||||||
|
|
||||||
if (CalculatedSize > 0x400000 &&
|
if (CalculatedSize > 0x400000 &&
|
||||||
(ROM[0x7fd5] + (ROM[0x7fd6] << 8)) != 0x3423 && // exclude SA-1
|
(ROM[0x7fd5] + (ROM[0x7fd6] << 8)) != 0x3423 && // exclude SA-1
|
||||||
|
Loading…
Reference in New Issue
Block a user