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();
if (mapper < 4096)
{
if (mapper < 256)
{
_header.ROM_type |= (mapper & 0xF) << 4;
_header.ROM_type2 |= (mapper & 0xF0);
}
else
if (mapper >= 256)
{
if (ines20)
{