diff options
author | Olivier Galibert <galibert@pobox.com> | 2018-01-07 22:20:14 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2018-01-17 16:11:18 +0100 |
commit | d469cc04bcace0f601802301caeddc5b473b75f2 (patch) | |
tree | a9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/drivers/jangou.cpp | |
parent | 9f383f76ce6f00cc3320e5ba53dc323781e0077b (diff) |
API Change: Machine configs are now a method of the owner class, and the prototype is simplified [O. Galibert]
Beware, the device context does not follow in MCFG_FRAGMENT_ADD
anymore due to the prototype change. So creating a device then
configuring through a fragment doesn't work as-is. The simplest
solution is just to add a MCFG_DEVICE_MODIFY at the start of the
fragment with the correct tag.
Diffstat (limited to 'src/mame/drivers/jangou.cpp')
-rw-r--r-- | src/mame/drivers/jangou.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mame/drivers/jangou.cpp b/src/mame/drivers/jangou.cpp index b84beb3d989..0c3f9276787 100644 --- a/src/mame/drivers/jangou.cpp +++ b/src/mame/drivers/jangou.cpp @@ -109,6 +109,10 @@ public: DECLARE_WRITE_LINE_MEMBER(jngolady_vclk_cb); std::unique_ptr<bitmap_ind16> m_tmp_bitmap; + void jngolady(machine_config &config); + void roylcrdn(machine_config &config); + void cntrygrl(machine_config &config); + void jangou(machine_config &config); }; @@ -838,7 +842,7 @@ MACHINE_RESET_MEMBER(jangou_state,jngolady) } /* Note: All frequencies and dividers are unverified */ -static MACHINE_CONFIG_START( jangou ) +MACHINE_CONFIG_START(jangou_state::jangou) /* basic machine hardware */ MCFG_CPU_ADD("cpu0", Z80, MASTER_CLOCK / 8) @@ -875,7 +879,7 @@ static MACHINE_CONFIG_START( jangou ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( jngolady, jangou ) +MACHINE_CONFIG_DERIVED(jangou_state::jngolady, jangou) /* basic machine hardware */ @@ -901,7 +905,7 @@ static MACHINE_CONFIG_DERIVED( jngolady, jangou ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( cntrygrl, jangou ) +MACHINE_CONFIG_DERIVED(jangou_state::cntrygrl, jangou) /* basic machine hardware */ @@ -919,7 +923,7 @@ static MACHINE_CONFIG_DERIVED( cntrygrl, jangou ) MCFG_DEVICE_REMOVE("soundlatch") MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( roylcrdn, jangou ) +MACHINE_CONFIG_DERIVED(jangou_state::roylcrdn, jangou) /* basic machine hardware */ |