summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/xbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/xbox.cpp')
-rw-r--r--src/mame/drivers/xbox.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mame/drivers/xbox.cpp b/src/mame/drivers/xbox.cpp
index 33cde885e1e..1452d3ce5c3 100644
--- a/src/mame/drivers/xbox.cpp
+++ b/src/mame/drivers/xbox.cpp
@@ -172,9 +172,8 @@ void xbox_ata_devices(device_slot_interface &device)
MACHINE_CONFIG_START(xbox_state::xbox)
xbox_base(config);
- MCFG_DEVICE_MODIFY("maincpu")
- MCFG_DEVICE_PROGRAM_MAP(xbox_map)
- MCFG_DEVICE_IO_MAP(xbox_map_io)
+ m_maincpu->set_addrmap(AS_PROGRAM, &xbox_state::xbox_map);
+ m_maincpu->set_addrmap(AS_IO, &xbox_state::xbox_map_io);
MCFG_DEVICE_MODIFY(":pci:09.0:ide:0")
MCFG_DEVICE_SLOT_INTERFACE(xbox_ata_devices, "hdd", true)
@@ -189,7 +188,7 @@ MACHINE_CONFIG_START(xbox_state::xbox)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD("ohci_gamepad", OHCI_GAME_CONTROLLER, 0)
+ OHCI_GAME_CONTROLLER(config, "ohci_gamepad", 0);
MACHINE_CONFIG_END