Snes9x - memmap: Add a comment about the new hack detection. (#963)

This commit is contained in:
bladeoner 2021-02-08 16:47:39 +01:00 committed by GitHub
parent b47c74744e
commit ff20f95258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1126,6 +1126,8 @@ int CMemory::ScoreHiROM (bool8 skip_header, int32 romoff)
uint8 *buf = ROM + 0xff00 + romoff + (skip_header ? 0x200 : 0); uint8 *buf = ROM + 0xff00 + romoff + (skip_header ? 0x200 : 0);
int score = 0; int score = 0;
// Check for extended HiROM expansion used in Mother 2 Deluxe et al.
// Looks for size byte 13 (8MB) and an actual ROM size greater than 4MB
if (buf[0xd7] == 13 && CalculatedSize > 1024 * 1024 * 4) if (buf[0xd7] == 13 && CalculatedSize > 1024 * 1024 * 4)
score += 5; score += 5;