summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2018-08-23 15:12:06 +0200
committer GitHub <noreply@github.com>2018-08-23 15:12:06 +0200
commit0974f602dbecbaa0915028016777b872c36add03 (patch)
treea6f7fd51c0fee1d929340537b2da7a1c809249e3 /src/mame
parent526df12a0de088e5acddbb490055c0f1e4dc5801 (diff)
cvs.cpp: restored save state support for huncholy and superbik (nw)
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/drivers/cvs.cpp4
1 files changed, 4 insertions, 0 deletions
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));
}