diff options
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 |
commit | 23325728009b85bad264dcc175c8f1b8c5e51678 (patch) | |
tree | 47e270288dae6d6e6f2cce33c779e94ffc2d39ab /src/mame/drivers/1942.cpp | |
parent | d1f8569f4d2729631ef5c3fd6de4e3cfca9856e8 (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/1942.cpp')
-rw-r--r-- | src/mame/drivers/1942.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/1942.cpp b/src/mame/drivers/1942.cpp index e929c72885c..c9726cb027d 100644 --- a/src/mame/drivers/1942.cpp +++ b/src/mame/drivers/1942.cpp @@ -495,7 +495,7 @@ static const gfx_layout spritelayout = 64*8 }; -static GFXDECODE_START( 1942 ) +static GFXDECODE_START( gfx_1942 ) GFXDECODE_ENTRY( "gfx1", 0, charlayout, 0, 64 ) GFXDECODE_ENTRY( "gfx2", 0, tilelayout, 64*4, 4*32 ) GFXDECODE_ENTRY( "gfx3", 0, spritelayout, 64*4+4*32*8, 16 ) @@ -538,7 +538,7 @@ static const gfx_layout spritelayout_p = 32*8 }; -static GFXDECODE_START( 1942p ) +static GFXDECODE_START( gfx_1942p ) GFXDECODE_ENTRY( "gfx1", 0, charlayout_p, 0x000, 64 ) GFXDECODE_ENTRY( "gfx2", 0, tilelayout_p, 0x300, 32 ) GFXDECODE_ENTRY( "gfx3", 0, spritelayout_p, 0x400, 16 ) @@ -572,7 +572,7 @@ MACHINE_CONFIG_START(_1942_state::_1942) /* video hardware */ - MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1942) + MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_1942) MCFG_PALETTE_ADD("palette", 64*4+4*32*8+16*16) MCFG_PALETTE_INDIRECT_ENTRIES(256) @@ -641,7 +641,7 @@ MACHINE_CONFIG_START(_1942_state::_1942p) /* video hardware */ - MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1942p) + MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_1942p) MCFG_PALETTE_ADD("palette", 0x500) MCFG_PALETTE_INDIRECT_ENTRIES(0x400) MCFG_PALETTE_INIT_OWNER(_1942_state, 1942p) |