summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2009-09-04 13:21:14 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2009-09-04 13:21:14 +0000
commitb62bb71918e59b0689c4b3b6f2f8b150e0ae716b (patch)
tree7dc17a8691adf32605f5a5702bbdcbdc8e67921e /src
parent1c56a127d53ad66ba1bb454650e1b37ceadd3da9 (diff)
fixed another NULL tilemap crash,
mametesters bug 3421
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/psikyo.c5
-rw-r--r--src/mame/video/psikyo.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/src/mame/drivers/psikyo.c b/src/mame/drivers/psikyo.c
index 7d5b0dca5b7..d17eddf6716 100644
--- a/src/mame/drivers/psikyo.c
+++ b/src/mame/drivers/psikyo.c
@@ -80,6 +80,7 @@ WRITE32_HANDLER( psikyo_vram_1_w );
VIDEO_START( psikyo );
VIDEO_EOF( psikyo );
VIDEO_UPDATE( psikyo );
+VIDEO_START( sngkace );
extern void psikyo_switch_banks( int tmap, int bank );
@@ -1205,7 +1206,7 @@ static MACHINE_DRIVER_START( sngkace )
MDRV_GFXDECODE(psikyo)
MDRV_PALETTE_LENGTH(0x1000)
- MDRV_VIDEO_START(psikyo)
+ MDRV_VIDEO_START(sngkace)
MDRV_VIDEO_EOF(psikyo)
MDRV_VIDEO_UPDATE(psikyo)
@@ -1431,8 +1432,6 @@ static DRIVER_INIT( sngkace )
memory_install_write32_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xc00010, 0xc00013, 0, 0, psikyo_soundlatch_w);
psikyo_ka302c_banking = 0; // SH201B doesn't have any gfx banking
- psikyo_switch_banks(0, 0); // sngkace / samuraia don't use banking
- psikyo_switch_banks(1, 1); // They share "gfx2" to save memory on other boards
/* Enable other regions */
#if 0
diff --git a/src/mame/video/psikyo.c b/src/mame/video/psikyo.c
index 3b6a5c03b35..155db13f0a7 100644
--- a/src/mame/video/psikyo.c
+++ b/src/mame/video/psikyo.c
@@ -243,6 +243,14 @@ VIDEO_START( psikyo )
tilemap_set_scroll_cols(tilemap_1_size3,1);
}
+VIDEO_START( sngkace )
+{
+ VIDEO_START_CALL( psikyo );
+
+ psikyo_switch_banks(0, 0); // sngkace / samuraia don't use banking
+ psikyo_switch_banks(1, 1); // They share "gfx2" to save memory on other boards
+}
+
/***************************************************************************