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/jaguar.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/jaguar.cpp')
-rw-r--r-- | src/mame/drivers/jaguar.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/jaguar.cpp b/src/mame/drivers/jaguar.cpp index e62cb6783aa..6e9c5b985e2 100644 --- a/src/mame/drivers/jaguar.cpp +++ b/src/mame/drivers/jaguar.cpp @@ -1801,7 +1801,7 @@ INPUT_PORTS_END * *************************************/ -static MACHINE_CONFIG_START( cojagr3k ) +MACHINE_CONFIG_START(jaguar_state::cojagr3k) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", R3041, R3000_CLOCK) @@ -1838,12 +1838,12 @@ static MACHINE_CONFIG_START( cojagr3k ) MCFG_SOUND_ROUTE_EX(0, "rdac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE_EX(0, "rdac", -1.0, DAC_VREF_NEG_INPUT) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( cojagr3k_rom, cojagr3k ) +MACHINE_CONFIG_DERIVED(jaguar_state::cojagr3k_rom, cojagr3k) MCFG_DEVICE_MODIFY("ide:0") MCFG_SLOT_DEFAULT_OPTION(nullptr) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( cojag68k, cojagr3k ) +MACHINE_CONFIG_DERIVED(jaguar_state::cojag68k, cojagr3k) /* basic machine hardware */ MCFG_CPU_REPLACE("maincpu", M68EC020, M68K_CLOCK/2) @@ -1851,7 +1851,7 @@ static MACHINE_CONFIG_DERIVED( cojag68k, cojagr3k ) MACHINE_CONFIG_END -static MACHINE_CONFIG_START( jaguar ) +MACHINE_CONFIG_START(jaguar_state::jaguar) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", M68000, JAGUAR_CLOCK/2) @@ -1896,7 +1896,7 @@ static MACHINE_CONFIG_START( jaguar ) MCFG_EEPROM_SERIAL_93C46_ADD("eeprom") MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( jaguarcd, jaguar ) +MACHINE_CONFIG_DERIVED(jaguar_state::jaguarcd, jaguar) MCFG_CPU_MODIFY("maincpu") MCFG_CPU_PROGRAM_MAP(jaguarcd_map) |