From b7422d2618a218bda28d76f15278ef8ec241b8b4 Mon Sep 17 00:00:00 2001 From: AJR Date: Mon, 28 May 2018 12:39:12 -0400 Subject: [PATCH] Fix some but not all validation errors from 2fedd39d2baffe6adb881a2fda9067299f117bf8 (nw) --- src/mame/audio/galaxian.cpp | 2 +- src/mame/drivers/cclimber.cpp | 5 +++-- src/mame/includes/cclimber.h | 2 -- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mame/audio/galaxian.cpp b/src/mame/audio/galaxian.cpp index 930a93c6f08..06a3ad300ec 100644 --- a/src/mame/audio/galaxian.cpp +++ b/src/mame/audio/galaxian.cpp @@ -393,7 +393,7 @@ galaxian_sound_device::galaxian_sound_device(const machine_config &mconfig, cons : device_t(mconfig, GALAXIAN, tag, owner, clock) , device_sound_interface(mconfig, *this) , m_lfo_val(0) - , m_discrete(*this, GAL_AUDIO) + , m_discrete(*this, "^" GAL_AUDIO) { } diff --git a/src/mame/drivers/cclimber.cpp b/src/mame/drivers/cclimber.cpp index f68ebbeb86f..67b1d98c97d 100644 --- a/src/mame/drivers/cclimber.cpp +++ b/src/mame/drivers/cclimber.cpp @@ -2668,8 +2668,9 @@ void cclimber_state::init_toprollr() { m_opcodes = std::make_unique(0x6000*3); - m_encrypted_cpu->set_region_p(memregion("user1")->base()); - m_encrypted_cpu->set_decrypted_p(m_opcodes.get()); + segacrpt_z80_device &cpu = downcast(*m_maincpu); + cpu.set_region_p(memregion("user1")->base()); + cpu.set_decrypted_p(m_opcodes.get()); membank("bank1")->configure_entries(0, 3, memregion("user1")->base(), 0x6000); membank("bank1d")->configure_entries(0, 3, m_opcodes.get(), 0x6000); diff --git a/src/mame/includes/cclimber.h b/src/mame/includes/cclimber.h index 35f5a5d050d..775273a2974 100644 --- a/src/mame/includes/cclimber.h +++ b/src/mame/includes/cclimber.h @@ -12,7 +12,6 @@ public: : driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_audiocpu(*this, "audiocpu"), - m_encrypted_cpu(*this, "maincpu"), m_gfxdecode(*this, "gfxdecode"), m_palette(*this, "palette"), m_mainlatch(*this, "mainlatch"), @@ -31,7 +30,6 @@ public: required_device m_maincpu; optional_device m_audiocpu; - optional_device m_encrypted_cpu; required_device m_gfxdecode; required_device m_palette; required_device m_mainlatch;