NESHawk: only add ines v2 submapper if it is non-zero, fixes #3082

This commit is contained in:
alyosha-tas 2022-01-28 21:02:49 -05:00
parent bde5ee5167
commit 4ff77456e4
1 changed files with 11 additions and 1 deletions

View File

@ -48,7 +48,17 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
int mapper = data[6] >> 4 | data[7] & 0xf0 | data[8] << 8 & 0xf00;
int submapper = data[8] >> 4;
CartV2.BoardType = $"MAPPER{mapper:d4}-{submapper:d2}";
// only add submapper if it is non-zero
if (submapper != 0)
{
CartV2.BoardType = $"MAPPER{mapper:d4}-{submapper:d2}";
}
else
{
CartV2.BoardType = $"MAPPER{mapper:d4}";
}
int vrambat = iNES2Wram(data[11] >> 4);
int vramnon = iNES2Wram(data[11] & 15);