diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-05-20 16:08:26 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-05-20 16:08:26 -0400 |
commit | 250ffdd5806a334f9ba440743af935833b0f5fd5 (patch) | |
tree | c36c6184cffa18daaf9faf267d22eac500747abe /src/mame/includes | |
parent | 1092f2009b8b9d9653d0daa678e6ca30ac121f79 (diff) |
model2.cpp: Use required_device_array for timers (nw)
Diffstat (limited to 'src/mame/includes')
-rw-r--r-- | src/mame/includes/model2.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/includes/model2.h b/src/mame/includes/model2.h index 02fe76586fc..7e06084787d 100644 --- a/src/mame/includes/model2.h +++ b/src/mame/includes/model2.h @@ -46,6 +46,7 @@ public: m_screen(*this, "screen"), m_palette(*this, "palette"), m_scsp(*this, "scsp"), + m_timers(*this, "timer%u", 0U), m_cryptdevice(*this, "315_5881"), m_0229crypt(*this, "317_0229"), m_copro_data(*this, "copro_data"), @@ -102,6 +103,7 @@ protected: required_device<screen_device> m_screen; required_device<palette_device> m_palette; optional_device<scsp_device> m_scsp; + required_device_array<timer_device, 4> m_timers; optional_device<sega_315_5881_crypt_device> m_cryptdevice; optional_device<sega_315_5838_comp_device> m_0229crypt; optional_memory_region m_copro_data; @@ -113,7 +115,6 @@ protected: uint32_t m_timervals[4]; uint32_t m_timerorig[4]; int m_timerrun[4]; - timer_device *m_timers[4]; int m_ctrlmode; uint16_t m_cmd_data; uint8_t m_driveio_comm_data; |