summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/igs009.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-05-15 05:43:28 +1000
committer Vas Crabb <vas@vastheman.com>2018-05-15 05:43:28 +1000
commit23325728009b85bad264dcc175c8f1b8c5e51678 (patch)
tree47e270288dae6d6e6f2cce33c779e94ffc2d39ab /src/mame/drivers/igs009.cpp
parentd1f8569f4d2729631ef5c3fd6de4e3cfca9856e8 (diff)
More cleanup/streamlining of machine configuration and macros:
* Get rid of implicit prefix for GFX decode names and prefix them all * Get rid of special macro for adding GFXDECODE in favour of constructor * Make empty GFX decode a static member of interface * Allow palette to be specified to GFXDECODE as a device finder * Removed diserial.h from emu.h as it's used relatively infrequently Also fix darkseal and vaportra propely. The palette device automatically attaches itself to a share with matching tag. The correct solution here is to rename one or the other out of the way, since it was never attached to a share before.
Diffstat (limited to 'src/mame/drivers/igs009.cpp')
-rw-r--r--src/mame/drivers/igs009.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/igs009.cpp b/src/mame/drivers/igs009.cpp
index ba27f66e06d..e3e5d7a036e 100644
--- a/src/mame/drivers/igs009.cpp
+++ b/src/mame/drivers/igs009.cpp
@@ -757,7 +757,7 @@ static const gfx_layout layout_8x32x6 =
8*32*2
};
-static GFXDECODE_START( jingbell )
+static GFXDECODE_START( gfx_jingbell )
GFXDECODE_ENTRY( "reels", 0, layout_8x32x6, 0, 16 )
GFXDECODE_ENTRY( "tiles", 0, layout_8x8x6, 0, 16 )
GFXDECODE_END
@@ -784,7 +784,7 @@ static const gfx_layout tiles8x32_layout =
32*16
};
-static GFXDECODE_START( gp98 )
+static GFXDECODE_START( gfx_gp98 )
GFXDECODE_ENTRY( "reels", 0, tiles8x32_layout, 0, 16 )
GFXDECODE_ENTRY( "tiles", 0, tiles8x8_layout, 0, 16 )
GFXDECODE_END
@@ -844,7 +844,7 @@ MACHINE_CONFIG_START(igs009_state::jingbell)
MCFG_SCREEN_PALETTE("palette")
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, igs009_state, vblank_irq))
- MCFG_GFXDECODE_ADD("gfxdecode", "palette", jingbell)
+ MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_jingbell)
MCFG_PALETTE_ADD("palette", 0x400)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -864,7 +864,7 @@ MACHINE_CONFIG_START(igs009_state::gp98)
MCFG_DEVICE_MODIFY("maincpu")
MCFG_DEVICE_IO_MAP(gp98_portmap)
- MCFG_GFXDECODE_MODIFY("gfxdecode", gp98)
+ MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_gp98)
MCFG_VIDEO_START_OVERRIDE(igs009_state,gp98)
MACHINE_CONFIG_END