Ported over another missing fix to the Qt iNES header editor from the windows version.
This commit is contained in:
parent
fe5953a205
commit
9bc07b8c2c
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue