mirror of
https://github.com/holub/mame
synced 2025-05-04 21:43:05 +03:00
hh_tms1k: fix quizwizc/tc4 savestate problem (nw)
This commit is contained in:
parent
c92e085bec
commit
9f932f5ced
@ -1664,6 +1664,9 @@ public:
|
||||
DECLARE_WRITE16_MEMBER(write_r);
|
||||
DECLARE_WRITE16_MEMBER(write_o);
|
||||
DECLARE_READ8_MEMBER(read_k);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
};
|
||||
|
||||
// handlers
|
||||
@ -1763,6 +1766,14 @@ static INPUT_PORTS_START( quizwizc )
|
||||
PORT_BIT( 0x0d, IP_ACTIVE_HIGH, IPT_UNUSED )
|
||||
INPUT_PORTS_END
|
||||
|
||||
void quizwizc_state::machine_start()
|
||||
{
|
||||
hh_tms1k_state::machine_start();
|
||||
|
||||
// register for savestates
|
||||
save_item(NAME(m_pinout));
|
||||
}
|
||||
|
||||
static MACHINE_CONFIG_START( quizwizc, quizwizc_state )
|
||||
|
||||
/* basic machine hardware */
|
||||
@ -1829,6 +1840,9 @@ public:
|
||||
DECLARE_WRITE16_MEMBER(write_r);
|
||||
DECLARE_WRITE16_MEMBER(write_o);
|
||||
DECLARE_READ8_MEMBER(read_k);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
};
|
||||
|
||||
// handlers
|
||||
@ -1927,6 +1941,14 @@ static INPUT_PORTS_START( tc4 )
|
||||
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(2) PORT_NAME("P2 D/K Button")
|
||||
INPUT_PORTS_END
|
||||
|
||||
void tc4_state::machine_start()
|
||||
{
|
||||
hh_tms1k_state::machine_start();
|
||||
|
||||
// register for savestates
|
||||
save_item(NAME(m_pinout));
|
||||
}
|
||||
|
||||
static MACHINE_CONFIG_START( tc4, tc4_state )
|
||||
|
||||
/* basic machine hardware */
|
||||
|
Loading…
Reference in New Issue
Block a user