Ported over another missing fix to the Qt iNES header editor from the windows version.

This commit is contained in:
Matthew Budd 2020-11-05 06:02:30 -05:00
parent fe5953a205
commit 9bc07b8c2c
1 changed files with 3 additions and 6 deletions

View File

@ -1333,13 +1333,10 @@ bool iNesHeaderEditor_t::WriteHeaderData(iNES_HEADER* header)
int mapper = mapperComboBox->itemData(idx).toInt(); int mapper = mapperComboBox->itemData(idx).toInt();
if (mapper < 4096) if (mapper < 4096)
{
if (mapper < 256)
{ {
_header.ROM_type |= (mapper & 0xF) << 4; _header.ROM_type |= (mapper & 0xF) << 4;
_header.ROM_type2 |= (mapper & 0xF0); _header.ROM_type2 |= (mapper & 0xF0);
} if (mapper >= 256)
else
{ {
if (ines20) if (ines20)
{ {