summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/fitfight.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/fitfight.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/fitfight.cpp')
-rw-r--r--src/mame/drivers/fitfight.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/fitfight.cpp b/src/mame/drivers/fitfight.cpp
index 6972366f1b6..acecff7ad7b 100644
--- a/src/mame/drivers/fitfight.cpp
+++ b/src/mame/drivers/fitfight.cpp
@@ -698,7 +698,7 @@ static const gfx_layout bbprot_sprite_layout =
16*16
};
-static GFXDECODE_START( fitfight )
+static GFXDECODE_START( gfx_fitfight )
GFXDECODE_ENTRY( "gfx1", 0, fof_tile_layout, 0x000, 256 ) /* tx tiles */
GFXDECODE_ENTRY( "gfx1", 0, fof_tile_layout, 0x200, 256 ) /* mid tiles */
GFXDECODE_ENTRY( "gfx1", 0, fof_tile_layout, 0x400, 256 ) /* bg tiles */
@@ -706,7 +706,7 @@ static GFXDECODE_START( fitfight )
GFXDECODE_END
-static GFXDECODE_START( prot )
+static GFXDECODE_START( gfx_prot )
GFXDECODE_ENTRY( "gfx1", 0, fof_tile_layout, 0x0000, 256 ) /* tx tiles */
GFXDECODE_ENTRY( "gfx1", 0, fof_tile_layout, 0x0800, 256 ) /* mid tiles */
GFXDECODE_ENTRY( "gfx1", 0, fof_tile_layout, 0x1000, 256 ) /* bg tiles */
@@ -741,7 +741,7 @@ MACHINE_CONFIG_START(fitfight_state::fitfight)
MCFG_UPD7810_PORTC_WRITE_CB(WRITE8(*this, fitfight_state, snd_portc_w))
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", fitfight_state, snd_irq)
- MCFG_GFXDECODE_ADD("gfxdecode", "palette", fitfight)
+ MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_fitfight)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
@@ -768,7 +768,7 @@ MACHINE_CONFIG_START(fitfight_state::bbprot)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", fitfight_state, irq2_line_hold)
- MCFG_GFXDECODE_ADD("gfxdecode", "palette", prot)
+ MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_prot)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)