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/nwk-tr.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/nwk-tr.cpp')
-rw-r--r-- | src/mame/drivers/nwk-tr.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/nwk-tr.cpp b/src/mame/drivers/nwk-tr.cpp index 1b3f1cadcff..e8b91121774 100644 --- a/src/mame/drivers/nwk-tr.cpp +++ b/src/mame/drivers/nwk-tr.cpp @@ -338,6 +338,8 @@ public: uint32_t screen_update_nwktr(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void lanc2_init(); + void thrilld(machine_config &config); + void nwktr(machine_config &config); }; @@ -812,7 +814,7 @@ void nwktr_state::machine_reset() m_dsp2->set_input_line(INPUT_LINE_RESET, ASSERT_LINE); } -static MACHINE_CONFIG_START( nwktr ) +MACHINE_CONFIG_START(nwktr_state::nwktr) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", PPC403GA, XTAL_64MHz/2) /* PowerPC 403GA 32MHz */ @@ -892,7 +894,7 @@ static MACHINE_CONFIG_START( nwktr ) MCFG_KONPPC_CGBOARD_TYPE(NWKTR) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( thrilld, nwktr ) +MACHINE_CONFIG_DERIVED(nwktr_state::thrilld, nwktr) MCFG_DEVICE_REMOVE("k001604") MCFG_DEVICE_ADD("k001604", K001604, 0) |