mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-27 21:14:21 +01:00
Merge branch 'master' of https://github.com/dborth/snes9xgx.git
This commit is contained in:
commit
4e11dc00b3
@ -1126,6 +1126,11 @@ int CMemory::ScoreHiROM (bool8 skip_header, int32 romoff)
|
||||
uint8 *buf = ROM + 0xff00 + romoff + (skip_header ? 0x200 : 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)
|
||||
score += 5;
|
||||
|
||||
if (buf[0xd5] & 0x1)
|
||||
score += 2;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user