From 0974f602dbecbaa0915028016777b872c36add03 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Thu, 23 Aug 2018 15:12:06 +0200 Subject: [PATCH] cvs.cpp: restored save state support for huncholy and superbik (nw) --- src/mame/drivers/cvs.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mame/drivers/cvs.cpp b/src/mame/drivers/cvs.cpp index cb8ae39a1b7..2efaa6cb419 100644 --- a/src/mame/drivers/cvs.cpp +++ b/src/mame/drivers/cvs.cpp @@ -1564,6 +1564,8 @@ READ8_MEMBER(cvs_state::huncholy_prot_r) void cvs_state::init_huncholy() { m_maincpu->space(AS_PROGRAM).install_read_handler(0x6ff1, 0x6ff2, read8_delegate(FUNC(cvs_state::huncholy_prot_r),this)); + + save_item(NAME(m_protection_counter)); } @@ -1587,6 +1589,8 @@ void cvs_state::init_superbik() { m_protection_counter = 0; m_maincpu->space(AS_PROGRAM).install_read_handler(0x73f1, 0x73f2, read8_delegate(FUNC(cvs_state::superbik_prot_r),this)); + + save_item(NAME(m_protection_counter)); }