summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-11-24 03:48:28 +0100
committer couriersud <couriersud@gmx.org>2019-11-24 03:48:28 +0100
commit6e8748952730a23a507c415c92398205238d1367 (patch)
tree90c7af5cfd3ec78dfb52c1229906ceacaa5f5c30
parent35f1086ba2ab37ead5cd5f1d76263057ca28678e (diff)
popeye: Minor modernization. (nw)
-rw-r--r--src/mame/drivers/popeye.cpp3
-rw-r--r--src/mame/includes/popeye.h2
2 files changed, 4 insertions, 1 deletions
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<uint8_t> m_color_prom;
required_region_ptr<uint8_t> 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;