mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
cvs.cpp: restored save state support for huncholy and superbik (nw)
This commit is contained in:
parent
526df12a0d
commit
0974f602db
@ -1564,6 +1564,8 @@ READ8_MEMBER(cvs_state::huncholy_prot_r)
|
|||||||
void cvs_state::init_huncholy()
|
void cvs_state::init_huncholy()
|
||||||
{
|
{
|
||||||
m_maincpu->space(AS_PROGRAM).install_read_handler(0x6ff1, 0x6ff2, read8_delegate(FUNC(cvs_state::huncholy_prot_r),this));
|
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_protection_counter = 0;
|
||||||
m_maincpu->space(AS_PROGRAM).install_read_handler(0x73f1, 0x73f2, read8_delegate(FUNC(cvs_state::superbik_prot_r),this));
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user