From 8a5d29c4a9dea22d036f63450cdfa8442fc8fce4 Mon Sep 17 00:00:00 2001 From: BearOso Date: Sun, 7 Feb 2021 12:07:37 -0600 Subject: [PATCH] memmap: Add a comment about the new hack detection. --- memmap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/memmap.cpp b/memmap.cpp index 6caa27a5..2e78de72 100644 --- a/memmap.cpp +++ b/memmap.cpp @@ -1104,6 +1104,8 @@ 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;