diff options
author | 2018-01-07 22:20:14 +0100 | |
---|---|---|
committer | 2018-01-17 16:11:18 +0100 | |
commit | d469cc04bcace0f601802301caeddc5b473b75f2 (patch) | |
tree | a9d71540c9c69cee5ab3a533476b81833fa02f5f /src/devices/bus/ti99/gromport | |
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/devices/bus/ti99/gromport')
-rw-r--r-- | src/devices/bus/ti99/gromport/cartridges.cpp | 2 | ||||
-rw-r--r-- | src/devices/bus/ti99/gromport/gkracker.cpp | 2 | ||||
-rw-r--r-- | src/devices/bus/ti99/gromport/multiconn.cpp | 2 | ||||
-rw-r--r-- | src/devices/bus/ti99/gromport/singleconn.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/bus/ti99/gromport/cartridges.cpp b/src/devices/bus/ti99/gromport/cartridges.cpp index 24ec2670340..d2d84cdbf47 100644 --- a/src/devices/bus/ti99/gromport/cartridges.cpp +++ b/src/devices/bus/ti99/gromport/cartridges.cpp @@ -396,7 +396,7 @@ void ti99_cartridge_device::device_config_complete() /* 5 GROMs that may be contained in a cartridge */ -MACHINE_CONFIG_MEMBER( ti99_cartridge_device::device_add_mconfig ) +MACHINE_CONFIG_START(ti99_cartridge_device::device_add_mconfig) MCFG_GROM_ADD( GROM3_TAG, 3, CARTGROM_TAG, 0x0000, WRITELINE(ti99_cartridge_device, ready_line)) MCFG_GROM_ADD( GROM4_TAG, 4, CARTGROM_TAG, 0x2000, WRITELINE(ti99_cartridge_device, ready_line)) MCFG_GROM_ADD( GROM5_TAG, 5, CARTGROM_TAG, 0x4000, WRITELINE(ti99_cartridge_device, ready_line)) diff --git a/src/devices/bus/ti99/gromport/gkracker.cpp b/src/devices/bus/ti99/gromport/gkracker.cpp index 3aadb7a1a7e..6cacbb0e2c7 100644 --- a/src/devices/bus/ti99/gromport/gkracker.cpp +++ b/src/devices/bus/ti99/gromport/gkracker.cpp @@ -428,7 +428,7 @@ const tiny_rom_entry *ti99_gkracker_device::device_rom_region() const return ROM_NAME( gkracker_rom ); } -MACHINE_CONFIG_MEMBER( ti99_gkracker_device::device_add_mconfig ) +MACHINE_CONFIG_START(ti99_gkracker_device::device_add_mconfig) MCFG_DEVICE_ADD("cartridge", TI99_CART, 0) MACHINE_CONFIG_END diff --git a/src/devices/bus/ti99/gromport/multiconn.cpp b/src/devices/bus/ti99/gromport/multiconn.cpp index 25b3201a6c6..8e350cd2f85 100644 --- a/src/devices/bus/ti99/gromport/multiconn.cpp +++ b/src/devices/bus/ti99/gromport/multiconn.cpp @@ -296,7 +296,7 @@ void ti99_multi_cart_conn_device::device_reset(void) m_grom_selected = false; } -MACHINE_CONFIG_MEMBER( ti99_multi_cart_conn_device::device_add_mconfig ) +MACHINE_CONFIG_START(ti99_multi_cart_conn_device::device_add_mconfig) MCFG_DEVICE_ADD("cartridge1", TI99_CART, 0) MCFG_DEVICE_ADD("cartridge2", TI99_CART, 0) MCFG_DEVICE_ADD("cartridge3", TI99_CART, 0) diff --git a/src/devices/bus/ti99/gromport/singleconn.cpp b/src/devices/bus/ti99/gromport/singleconn.cpp index 88472b1e003..e46dc5becf1 100644 --- a/src/devices/bus/ti99/gromport/singleconn.cpp +++ b/src/devices/bus/ti99/gromport/singleconn.cpp @@ -83,7 +83,7 @@ void ti99_single_cart_conn_device::device_reset() m_cartridge->set_slot(0); } -MACHINE_CONFIG_MEMBER( ti99_single_cart_conn_device::device_add_mconfig ) +MACHINE_CONFIG_START(ti99_single_cart_conn_device::device_add_mconfig) MCFG_DEVICE_ADD("cartridge", TI99_CART, 0) MACHINE_CONFIG_END |