summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/psx/gamebooster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/psx/gamebooster.cpp')
-rw-r--r--src/devices/bus/psx/gamebooster.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/devices/bus/psx/gamebooster.cpp b/src/devices/bus/psx/gamebooster.cpp
index 230ebfea49b..3513f7714e2 100644
--- a/src/devices/bus/psx/gamebooster.cpp
+++ b/src/devices/bus/psx/gamebooster.cpp
@@ -150,10 +150,11 @@ static void gb_cart(device_slot_interface &device)
// device.option_add_internal("rom_unk01", GB_ROM_UNK01);
}
-MACHINE_CONFIG_START(psx_gamebooster_device::device_add_mconfig)
+void psx_gamebooster_device::device_add_mconfig(machine_config &config)
+{
/* cartslot */
- MCFG_GB_CARTRIDGE_ADD("gbslot", gb_cart, nullptr)
+ GB_CART_SLOT(config, m_cartslot, gb_cart, nullptr);
- MCFG_SOFTWARE_LIST_ADD("cart_list","gameboy")
- MCFG_SOFTWARE_LIST_COMPATIBLE_ADD("gbc_list","gbcolor")
-MACHINE_CONFIG_END
+ SOFTWARE_LIST(config, "cart_list").set_original("gameboy");
+ SOFTWARE_LIST(config, "gbc_list").set_compatible("gbcolor");
+}