NstCartridgeInes: Handle special battery flag case with NES 2.0 Mapper 30 ROMs

This commit is contained in:
Rupert Carmichael
2024-12-10 00:33:35 -05:00
parent af30fecf8f
commit 8b622a6e2a

View File

@@ -254,6 +254,16 @@ namespace Nes
<< (setup.chrNvRam % SIZE_1K ? " bytes" : "k")
<< " non-volatile CHR-RAM set" NST_LINEBREAK;
}
// Special case for Mapper 30 - Mapper is flashable, no bus conflicts
// when the battery flag is set. This can also be used to signify no bus
// conflicts even in cases where there is no flashable PRG.
if (setup.mapper == 30 && header[6] & 0x2U)
{
profileEx.battery = true;
log << title
<< "battery flag set (no bus conflicts)" NST_LINEBREAK;
}
}
else
{