From 332d04f2e6500eb7557e89ce28705bf28724f850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Tue, 2 Oct 2012 19:34:14 +0000 Subject: [PATCH] fix catchp crash --- src/mame/includes/avalnche.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/mame/includes/avalnche.h b/src/mame/includes/avalnche.h index eeef5490022..84bd4f2200d 100644 --- a/src/mame/includes/avalnche.h +++ b/src/mame/includes/avalnche.h @@ -11,15 +11,16 @@ class avalnche_state : public driver_device { public: avalnche_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag) , + : driver_device(mconfig, type, tag), m_videoram(*this, "videoram"), - m_discrete(*this, "discrete") { } + m_discrete(*this, "discrete") + { } - /* video-related */ required_shared_ptr m_videoram; - required_device m_discrete; + optional_device m_discrete; + + UINT8 m_avalance_video_inverted; - UINT8 m_avalance_video_inverted; DECLARE_WRITE8_MEMBER(avalance_video_invert_w); DECLARE_WRITE8_MEMBER(catch_coin_counter_w); DECLARE_WRITE8_MEMBER(avalance_credit_1_lamp_w); @@ -34,6 +35,8 @@ public: DECLARE_WRITE8_MEMBER(catch_audio_w); }; + /*----------- defined in audio/avalnche.c -----------*/ + DISCRETE_SOUND_EXTERN( avalnche );