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/swtpc09.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/swtpc09.cpp')
-rw-r--r-- | src/mame/drivers/swtpc09.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/swtpc09.cpp b/src/mame/drivers/swtpc09.cpp index 4f94d66128c..3d8aecee168 100644 --- a/src/mame/drivers/swtpc09.cpp +++ b/src/mame/drivers/swtpc09.cpp @@ -159,7 +159,7 @@ SLOT_INTERFACE_END /* Machine driver */ /* MPU09, MPID, MPS2 DMF2 */ -static MACHINE_CONFIG_START( swtpc09_base ) +MACHINE_CONFIG_START(swtpc09_state::swtpc09_base) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", MC6809, XTAL_4MHz) MCFG_CPU_PROGRAM_MAP(mp09_mem) @@ -201,14 +201,14 @@ static MACHINE_CONFIG_START( swtpc09_base ) MCFG_FLOPPY_DRIVE_ADD("fdc:3", swtpc09_floppies, "dd", swtpc09_state::floppy_formats) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( swtpc09, swtpc09_base ) +MACHINE_CONFIG_DERIVED(swtpc09_state::swtpc09, swtpc09_base) MCFG_DEVICE_MODIFY("fdc") MCFG_WD_FDC_INTRQ_CALLBACK(WRITELINE(swtpc09_state, fdc_intrq_w)) MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(swtpc09_state, fdc_drq_w)) MACHINE_CONFIG_END /* MPU09, MPID, MPS2 DC4 PIAIDE*/ -static MACHINE_CONFIG_DERIVED( swtpc09i, swtpc09_base ) +MACHINE_CONFIG_DERIVED(swtpc09_state::swtpc09i, swtpc09_base) MCFG_DEVICE_MODIFY("bankdev") MCFG_DEVICE_PROGRAM_MAP(flex_dc4_piaide_mem) @@ -223,14 +223,14 @@ static MACHINE_CONFIG_DERIVED( swtpc09i, swtpc09_base ) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( swtpc09u, swtpc09 ) +MACHINE_CONFIG_DERIVED(swtpc09_state::swtpc09u, swtpc09) MCFG_DEVICE_MODIFY("bankdev") MCFG_DEVICE_PROGRAM_MAP(uniflex_dmf2_mem) MACHINE_CONFIG_END /* MPU09, MPID, MPS2 DMF3 */ -static MACHINE_CONFIG_DERIVED( swtpc09d3, swtpc09_base ) +MACHINE_CONFIG_DERIVED(swtpc09_state::swtpc09d3, swtpc09_base) MCFG_CPU_MODIFY("maincpu") MCFG_CPU_CLOCK(XTAL_8MHz) |