diff options
Diffstat (limited to 'src/mame/machine/naomim1.h')
-rw-r--r-- | src/mame/machine/naomim1.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mame/machine/naomim1.h b/src/mame/machine/naomim1.h index ffad96cb947..b0702b7c772 100644 --- a/src/mame/machine/naomim1.h +++ b/src/mame/machine/naomim1.h @@ -7,12 +7,17 @@ #include "naomibd.h" -#define MCFG_NAOMI_M1_BOARD_ADD(_tag, _eeprom_tag, _irq_cb) \ - MCFG_NAOMI_BOARD_ADD(_tag, NAOMI_M1_BOARD, _eeprom_tag, _irq_cb) class naomi_m1_board : public naomi_board { public: + template <typename T> + naomi_m1_board(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, T &&eeprom_tag) + : naomi_m1_board(mconfig, tag, owner, clock) + { + eeprom.set_tag(std::forward<T>(eeprom_tag)); + } + naomi_m1_board(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual void submap(address_map &map) override; |