diff options
Diffstat (limited to 'src/devices/bus/sms_ctrl/smsctrl.cpp')
-rw-r--r-- | src/devices/bus/sms_ctrl/smsctrl.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/devices/bus/sms_ctrl/smsctrl.cpp b/src/devices/bus/sms_ctrl/smsctrl.cpp index 0967ae723c3..6d760f9bf93 100644 --- a/src/devices/bus/sms_ctrl/smsctrl.cpp +++ b/src/devices/bus/sms_ctrl/smsctrl.cpp @@ -8,6 +8,7 @@ #include "emu.h" #include "smsctrl.h" + // slot devices #include "joypad.h" #include "lphaser.h" @@ -24,7 +25,7 @@ // GLOBAL VARIABLES //************************************************************************** -const device_type SMS_CONTROL_PORT = device_creator<sms_control_port_device>; +DEFINE_DEVICE_TYPE(SMS_CONTROL_PORT, sms_control_port_device, "sms_control_port", "Sega SMS controller port") @@ -62,10 +63,11 @@ device_sms_control_port_interface::~device_sms_control_port_interface() //------------------------------------------------- sms_control_port_device::sms_control_port_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - device_t(mconfig, SMS_CONTROL_PORT, "Sega SMS control port", tag, owner, clock, "sms_control_port", __FILE__), - device_slot_interface(mconfig, *this), m_device(nullptr), - m_th_pin_handler(*this), - m_pixel_handler(*this) + device_t(mconfig, SMS_CONTROL_PORT, tag, owner, clock), + device_slot_interface(mconfig, *this), + m_device(nullptr), + m_th_pin_handler(*this), + m_pixel_handler(*this) { } |