summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2013-04-05 15:09:52 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2013-04-05 15:09:52 +0000
commitf53f9ca80868bc56d725f80acbbc98748c6ddb74 (patch)
treee012afdc1e9dcffca8bdb6e3a30aaa3bde2574cc
parent499e810256072364f0014a86bfe4e4103754c231 (diff)
fix prg16k when info is obtained from nes.hsi
-rw-r--r--src/mess/machine/nes_slot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mess/machine/nes_slot.c b/src/mess/machine/nes_slot.c
index 9608c59d72b..7fbb8e6ca15 100644
--- a/src/mess/machine/nes_slot.c
+++ b/src/mess/machine/nes_slot.c
@@ -296,13 +296,14 @@ bool nes_cart_slot_device::call_load()
if (4 == sscanf(mapinfo,"%d %d %d %d", &mapint1, &mapint2, &mapint3, &mapint4))
{
/* image is present in nes.hsi: overwrite the header settings with these */
+ ines20 = FALSE;
mapper = mapint1;
local_options = mapint2 & 0x0f;
m_crc_hack = (mapint2 & 0xf0) >> 4; // this is used to differentiate among variants of the same Mapper (see below)
- prg_size = mapint3 * 0x4000;
+ prg16k = (mapint3 == 1);
+ prg_size = prg16k ? 2 * 0x4000 : mapint3 * 0x4000;
vrom_size = mapint4 * 0x2000;
logerror("NES.HSI info: %d %d %d %d\n", mapint1, mapint2, mapint3, mapint4);
-// mame_printf_error("NES.HSI info: %d %d %d %d\n", mapint1, mapint2, mapint3, mapint4);
}
else
{