mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
wpcsnd: added save-state support
This commit is contained in:
parent
99657d0cbf
commit
cc579311df
@ -121,6 +121,10 @@ void wpcsnd_device::device_start()
|
||||
{
|
||||
// resolve callback
|
||||
m_reply_cb.resolve_safe();
|
||||
// save states
|
||||
save_item(NAME(m_latch));
|
||||
save_item(NAME(m_reply));
|
||||
save_item(NAME(m_reply_available));
|
||||
}
|
||||
|
||||
void wpcsnd_device::device_reset()
|
||||
|
@ -47,8 +47,8 @@ protected:
|
||||
virtual void device_add_mconfig(machine_config &config) override;
|
||||
|
||||
private:
|
||||
uint8_t m_latch;
|
||||
uint8_t m_reply;
|
||||
uint8_t m_latch = 0;
|
||||
uint8_t m_reply = 0;
|
||||
bool m_reply_available;
|
||||
|
||||
// callback
|
||||
|
Loading…
Reference in New Issue
Block a user