From 2beba4ce73fad917c7159a39939bace54f76494b Mon Sep 17 00:00:00 2001 From: wilbertpol Date: Sun, 20 May 2018 19:27:20 +0200 Subject: =?UTF-8?q?Replace=20set=5Fled=5Fvalue=20and=20set=5Flamp=5Fvalue?= =?UTF-8?q?=20with=20output=5Ffinders.=20=20[Wilbe=E2=80=A6=20(#3592)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Replace set_led_value and set_lamp_value with output_finders. [Wilbert Pol] * segaufo: keep the 2 bit lamp outputs --- src/mame/includes/poolshrk.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mame/includes/poolshrk.h') diff --git a/src/mame/includes/poolshrk.h b/src/mame/includes/poolshrk.h index bc2029c8d31..5bef83a8f04 100644 --- a/src/mame/includes/poolshrk.h +++ b/src/mame/includes/poolshrk.h @@ -27,7 +27,8 @@ public: m_discrete(*this, "discrete"), m_playfield_ram(*this, "playfield_ram"), m_hpos_ram(*this, "hpos_ram"), - m_vpos_ram(*this, "vpos_ram") + m_vpos_ram(*this, "vpos_ram"), + m_led(*this, "led%u", 0U) { } void init_poolshrk(); @@ -51,6 +52,7 @@ protected: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); virtual void video_start() override; void poolshrk_cpu_map(address_map &map); + virtual void machine_start() override { m_led.resolve(); } private: required_device m_maincpu; @@ -62,6 +64,7 @@ private: required_shared_ptr m_playfield_ram; required_shared_ptr m_hpos_ram; required_shared_ptr m_vpos_ram; + output_finder<2> m_led; tilemap_t* m_bg_tilemap; int m_da_latch; -- cgit v1.2.3