NESHawk: only add ines v2 submapper if it is non-zero, fixes #3082
This commit is contained in:
parent
bde5ee5167
commit
4ff77456e4
|
@ -48,7 +48,17 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||||
|
|
||||||
int mapper = data[6] >> 4 | data[7] & 0xf0 | data[8] << 8 & 0xf00;
|
int mapper = data[6] >> 4 | data[7] & 0xf0 | data[8] << 8 & 0xf00;
|
||||||
int submapper = data[8] >> 4;
|
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 vrambat = iNES2Wram(data[11] >> 4);
|
||||||
int vramnon = iNES2Wram(data[11] & 15);
|
int vramnon = iNES2Wram(data[11] & 15);
|
||||||
|
|
Loading…
Reference in New Issue