diff options
Diffstat (limited to 'src/devices/bus/nes_ctrl/ctrl.cpp')
-rw-r--r-- | src/devices/bus/nes_ctrl/ctrl.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/devices/bus/nes_ctrl/ctrl.cpp b/src/devices/bus/nes_ctrl/ctrl.cpp index ec439f91dbd..ef491efc889 100644 --- a/src/devices/bus/nes_ctrl/ctrl.cpp +++ b/src/devices/bus/nes_ctrl/ctrl.cpp @@ -64,7 +64,7 @@ // GLOBAL VARIABLES //************************************************************************** -const device_type NES_CONTROL_PORT = device_creator<nes_control_port_device>; +DEFINE_DEVICE_TYPE(NES_CONTROL_PORT, nes_control_port_device, "nes_control_port", "Nintendo NES/FC control port") @@ -77,7 +77,7 @@ const device_type NES_CONTROL_PORT = device_creator<nes_control_port_device>; //------------------------------------------------- device_nes_control_port_interface::device_nes_control_port_interface(const machine_config &mconfig, device_t &device) : - device_slot_card_interface(mconfig, device) + device_slot_card_interface(mconfig, device) { m_port = dynamic_cast<nes_control_port_device *>(device.owner()); } @@ -102,8 +102,9 @@ device_nes_control_port_interface::~device_nes_control_port_interface() //------------------------------------------------- nes_control_port_device::nes_control_port_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - device_t(mconfig, NES_CONTROL_PORT, "Nintendo NES/FC control port", tag, owner, clock, "nes_control_port", __FILE__), - device_slot_interface(mconfig, *this), m_device(nullptr) + device_t(mconfig, NES_CONTROL_PORT, tag, owner, clock), + device_slot_interface(mconfig, *this), + m_device(nullptr) { } |