summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/namcos22.h
diff options
context:
space:
mode:
author Alex W. Jackson <alex.w.jackson@gmail.com>2014-10-04 23:28:10 +0000
committer Alex W. Jackson <alex.w.jackson@gmail.com>2014-10-04 23:28:10 +0000
commit3879fb5b7e6d596d808a905f700b83ec74bbcd1f (patch)
tree6e202ec6c7772074867776112004887a0107e785 /src/mame/includes/namcos22.h
parent762420efad1058d8d13a246b8f8d1c6058187175 (diff)
devfind.h: allow ioport_finder to be dereferenced when NULL so read_safe() can be used (nw)
Diffstat (limited to 'src/mame/includes/namcos22.h')
-rw-r--r--src/mame/includes/namcos22.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/includes/namcos22.h b/src/mame/includes/namcos22.h
index 1d613db967f..4c05f2d949f 100644
--- a/src/mame/includes/namcos22.h
+++ b/src/mame/includes/namcos22.h
@@ -199,7 +199,8 @@ public:
m_pc_pedal_interrupt(*this, "pc_p_int"),
m_gfxdecode(*this, "gfxdecode"),
m_screen(*this, "screen"),
- m_palette(*this, "palette")
+ m_palette(*this, "palette"),
+ m_adc_ports(*this, "ADC")
{ }
required_device<cpu_device> m_maincpu;
@@ -228,8 +229,9 @@ public:
required_device<gfxdecode_device> m_gfxdecode;
required_device<screen_device> m_screen;
required_device<palette_device> m_palette;
+ optional_ioport_array<8> m_adc_ports;
+
- ioport_port *m_adc_ports[8];
UINT8 m_syscontrol[0x20];
bool m_dsp_irq_enabled;
emu_timer *m_ar_tb_interrupt[2];