From 5c3ded77a778232ffc8c9fd31bbd5cd902a3046d Mon Sep 17 00:00:00 2001 From: hap Date: Tue, 20 Apr 2021 21:01:55 +0200 Subject: [PATCH] ibm5170: fix validity error --- hash/ibm5170.xml | 2 +- src/devices/machine/chessmachine.cpp | 4 ---- src/devices/machine/chessmachine.h | 4 ++-- src/devices/machine/smartboard.cpp | 7 ------- 4 files changed, 3 insertions(+), 14 deletions(-) diff --git a/hash/ibm5170.xml b/hash/ibm5170.xml index 60fced9d55d..f016676d463 100644 --- a/hash/ibm5170.xml +++ b/hash/ibm5170.xml @@ -5822,8 +5822,8 @@ license:CC0 SmartBoard Driver (DOS) 1995 - Tasc + diff --git a/src/devices/machine/chessmachine.cpp b/src/devices/machine/chessmachine.cpp index 08e45ebb581..cd80fce19e5 100644 --- a/src/devices/machine/chessmachine.cpp +++ b/src/devices/machine/chessmachine.cpp @@ -62,10 +62,6 @@ void chessmachine_device::device_start() // resolve callbacks m_data_out.resolve_safe(); - // zerofill - m_bootrom_enabled = false; - m_latch[0] = m_latch[1] = 0; - // register for savestates save_item(NAME(m_bootrom_enabled)); save_item(NAME(m_latch)); diff --git a/src/devices/machine/chessmachine.h b/src/devices/machine/chessmachine.h index db670ff8dc6..b1a11b459f1 100644 --- a/src/devices/machine/chessmachine.h +++ b/src/devices/machine/chessmachine.h @@ -46,11 +46,11 @@ private: devcb_write_line m_data_out; - u8 m_latch[2]; + u8 m_latch[2] = { 0, 0 }; void sync0_callback(void *ptr, s32 param); void sync1_callback(void *ptr, s32 param); - bool m_bootrom_enabled; + bool m_bootrom_enabled = false; void install_bootrom(bool enable); TIMER_DEVICE_CALLBACK_MEMBER(disable_bootrom) { install_bootrom(false); } u32 disable_bootrom_r(); diff --git a/src/devices/machine/smartboard.cpp b/src/devices/machine/smartboard.cpp index 674568c5365..fe1dc0b5d08 100644 --- a/src/devices/machine/smartboard.cpp +++ b/src/devices/machine/smartboard.cpp @@ -58,16 +58,9 @@ enum SB30_BLACK_PAWN8 }; -//************************************************************************** -// DEVICE DEFINITIONS -//************************************************************************** DEFINE_DEVICE_TYPE(TASC_SB30, tasc_sb30_device, "tasc_sb30", "Tasc SmartBoard SB30") -//************************************************************************** -// LIVE DEVICE -//************************************************************************** - //------------------------------------------------- // tasc_sb30_device - constructor //-------------------------------------------------