diff options
Diffstat (limited to 'src/devices/bus/sega8/sega8_slot.h')
| -rw-r--r-- | src/devices/bus/sega8/sega8_slot.h | 40 |
1 files changed, 8 insertions, 32 deletions
diff --git a/src/devices/bus/sega8/sega8_slot.h b/src/devices/bus/sega8/sega8_slot.h index 7f320b4fc42..7aa5251dad5 100644 --- a/src/devices/bus/sega8/sega8_slot.h +++ b/src/devices/bus/sega8/sega8_slot.h @@ -186,10 +186,7 @@ public: sg1000_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&opts, const char *dflt) : sg1000_cart_slot_device(mconfig, tag, owner, u32(0)) { - option_reset(); - opts(*this); - set_default_option(dflt); - set_fixed(false); + set_options(std::forward<T>(opts), dflt, false); } sg1000_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual const char *image_interface() const noexcept override { return "sg1000_cart"; } @@ -206,10 +203,7 @@ public: omv_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&opts, const char *dflt) : omv_cart_slot_device(mconfig, tag, owner, u32(0)) { - option_reset(); - opts(*this); - set_default_option(dflt); - set_fixed(false); + set_options(std::forward<T>(opts), dflt, false); } omv_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual const char *image_interface() const noexcept override { return "sg1000_cart"; } @@ -226,10 +220,7 @@ public: sc3000_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&opts, const char *dflt) : sc3000_cart_slot_device(mconfig, tag, owner, u32(0)) { - option_reset(); - opts(*this); - set_default_option(dflt); - set_fixed(false); + set_options(std::forward<T>(opts), dflt, false); } sc3000_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual const char *image_interface() const noexcept override { return "sg1000_cart"; } @@ -246,10 +237,7 @@ public: sg1000mk3_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&opts, const char *dflt) : sg1000mk3_cart_slot_device(mconfig, tag, owner, u32(0)) { - option_reset(); - opts(*this); - set_default_option(dflt); - set_fixed(false); + set_options(std::forward<T>(opts), dflt, false); } sg1000mk3_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual const char *image_interface() const noexcept override { return "sms_cart,sg1000_cart"; } @@ -266,10 +254,7 @@ public: sms_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&opts, const char *dflt) : sms_cart_slot_device(mconfig, tag, owner, u32(0)) { - option_reset(); - opts(*this); - set_default_option(dflt); - set_fixed(false); + set_options(std::forward<T>(opts), dflt, false); } sms_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual const char *image_interface() const noexcept override { return "sms_cart"; } @@ -286,10 +271,7 @@ public: gamegear_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&opts, const char *dflt) : gamegear_cart_slot_device(mconfig, tag, owner, u32(0)) { - option_reset(); - opts(*this); - set_default_option(dflt); - set_fixed(false); + set_options(std::forward<T>(opts), dflt, false); } gamegear_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual const char *image_interface() const noexcept override { return "gamegear_cart"; } @@ -307,10 +289,7 @@ public: sms_card_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&opts, const char *dflt) : sms_card_slot_device(mconfig, tag, owner, u32(0)) { - option_reset(); - opts(*this); - set_default_option(dflt); - set_fixed(false); + set_options(std::forward<T>(opts), dflt, false); } sms_card_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual const char *image_interface() const noexcept override { return "sms_card"; } @@ -327,10 +306,7 @@ public: sg1000_card_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&opts, const char *dflt) : sg1000_card_slot_device(mconfig, tag, owner, u32(0)) { - option_reset(); - opts(*this); - set_default_option(dflt); - set_fixed(false); + set_options(std::forward<T>(opts), dflt, false); } sg1000_card_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual const char *image_interface() const noexcept override { return "sg1000_cart"; } |
