memmap: Add heuristic to detect Earthbound hack.

Fixes issue #691.
This commit is contained in:
BearOso 2021-02-06 13:08:46 -06:00
parent cc7e028179
commit a146093e4e
1 changed files with 3 additions and 0 deletions

View File

@ -1104,6 +1104,9 @@ int CMemory::ScoreHiROM (bool8 skip_header, int32 romoff)
uint8 *buf = ROM + 0xff00 + romoff + (skip_header ? 0x200 : 0);
int score = 0;
if (buf[0xd7] == 13 && CalculatedSize > 1024 * 1024 * 4)
score += 5;
if (buf[0xd5] & 0x1)
score += 2;