From 6e8748952730a23a507c415c92398205238d1367 Mon Sep 17 00:00:00 2001 From: couriersud Date: Sun, 24 Nov 2019 03:48:28 +0100 Subject: popeye: Minor modernization. (nw) --- src/mame/drivers/popeye.cpp | 3 ++- src/mame/includes/popeye.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mame/drivers/popeye.cpp b/src/mame/drivers/popeye.cpp index d385cc296f4..bbc3273da6b 100644 --- a/src/mame/drivers/popeye.cpp +++ b/src/mame/drivers/popeye.cpp @@ -231,6 +231,7 @@ public: { } + virtual ~brazehs() override = default; virtual void config(machine_config &config) override { T::config(config); @@ -277,7 +278,7 @@ protected: READ_LINE_MEMBER(tnx1_state::dsw1_read) { - return ioport("DSW1")->read() >> m_dswbit; + return m_io_dsw1->read() >> m_dswbit; } diff --git a/src/mame/includes/popeye.h b/src/mame/includes/popeye.h index 594dcd93d2d..660eba84864 100644 --- a/src/mame/includes/popeye.h +++ b/src/mame/includes/popeye.h @@ -29,6 +29,7 @@ public: m_color_prom(*this, "proms"), m_color_prom_spr(*this, "sprpal"), m_io_mconf(*this, "MCONF"), + m_io_dsw1(*this, "DSW1"), m_background_scroll{0,0,0}, m_fg_tilemap(nullptr), m_palette_bank(0), @@ -57,6 +58,7 @@ protected: required_region_ptr m_color_prom; required_region_ptr m_color_prom_spr; required_ioport m_io_mconf; + required_ioport m_io_dsw1; static const res_net_decode_info mb7051_decode_info; static const res_net_decode_info mb7052_decode_info; -- cgit v1.2.3