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/dmv.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/dmv.cpp')
-rw-r--r-- | src/mame/drivers/dmv.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/mame/drivers/dmv.cpp b/src/mame/drivers/dmv.cpp index 4519d6d2576..d51c3bb07c6 100644 --- a/src/mame/drivers/dmv.cpp +++ b/src/mame/drivers/dmv.cpp @@ -44,32 +44,32 @@ class dmv_state : public driver_device { public: dmv_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), - m_maincpu(*this, "maincpu"), - m_screen(*this, "screen"), - m_hgdc(*this, "upd7220"), - m_dmac(*this, "dma8237"), - m_pit(*this, "pit8253"), - m_fdc(*this, "i8272"), - m_floppy0(*this, "i8272:0"), - m_floppy1(*this, "i8272:1"), - m_keyboard(*this, "keyboard"), - m_speaker(*this, "speaker"), - m_video_ram(*this, "video_ram"), - m_palette(*this, "palette"), - m_ram(*this, "ram"), - m_bootrom(*this, "boot"), - m_chargen(*this, "chargen"), - m_slot1(*this, "slot1"), - m_slot2(*this, "slot2"), - m_slot2a(*this, "slot2a"), - m_slot3(*this, "slot3"), - m_slot4(*this, "slot4"), - m_slot5(*this, "slot5"), - m_slot6(*this, "slot6"), - m_slot7(*this, "slot7"), - m_slot7a(*this, "slot7a") - { } + : driver_device(mconfig, type, tag) + , m_maincpu(*this, "maincpu") + , m_screen(*this, "screen") + , m_hgdc(*this, "upd7220") + , m_dmac(*this, "dma8237") + , m_pit(*this, "pit8253") + , m_fdc(*this, "i8272") + , m_floppy0(*this, "i8272:0") + , m_floppy1(*this, "i8272:1") + , m_keyboard(*this, "keyboard") + , m_speaker(*this, "speaker") + , m_video_ram(*this, "video_ram") + , m_palette(*this, "palette") + , m_ram(*this, "ram") + , m_bootrom(*this, "boot") + , m_chargen(*this, "chargen") + , m_slot1(*this, "slot1") + , m_slot2(*this, "slot2") + , m_slot2a(*this, "slot2a") + , m_slot3(*this, "slot3") + , m_slot4(*this, "slot4") + , m_slot5(*this, "slot5") + , m_slot6(*this, "slot6") + , m_slot7(*this, "slot7") + , m_slot7a(*this, "slot7a") + { } required_device<cpu_device> m_maincpu; required_device<screen_device> m_screen; @@ -663,7 +663,7 @@ static const gfx_layout dmv_charlayout = 8*16 /* every char takes 16 bytes */ }; -static GFXDECODE_START( dmv ) +static GFXDECODE_START( gfx_dmv ) GFXDECODE_ENTRY("chargen", 0x0000, dmv_charlayout, 0, 1) GFXDECODE_END @@ -788,7 +788,7 @@ MACHINE_CONFIG_START(dmv_state::dmv) MCFG_SCREEN_SIZE(640, 400) MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 400-1) - MCFG_GFXDECODE_ADD("gfxdecode", "palette", dmv) + MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_dmv) MCFG_PALETTE_ADD_3BIT_RGB("palette") MCFG_DEFAULT_LAYOUT(layout_dmv) |