mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-02-17 11:56:25 +01:00
Snes9x - memmap: Add heuristic to detect Earthbound hack. (#962)
This commit is contained in:
parent
b291b3e6c5
commit
b47c74744e
@ -1126,6 +1126,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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user