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

@ -1334,12 +1334,9 @@ bool iNesHeaderEditor_t::WriteHeaderData(iNES_HEADER* header)
if (mapper < 4096)
{
if (mapper < 256)
{
_header.ROM_type |= (mapper & 0xF) << 4;
_header.ROM_type2 |= (mapper & 0xF0);
}
else
_header.ROM_type |= (mapper & 0xF) << 4;
_header.ROM_type2 |= (mapper & 0xF0);
if (mapper >= 256)
{
if (ines20)
{