mirror of
https://github.com/holub/mame
synced 2025-05-19 20:29:09 +03:00
h8_timer16.c: added save state support. Fixes lastfght save state regression (nw)
This commit is contained in:
parent
d65e76a77c
commit
3a630a09bc
@ -162,6 +162,22 @@ void h8_timer16_channel_device::device_start()
|
|||||||
{
|
{
|
||||||
intc = owner()->siblingdevice<h8_intc_device>(intc_tag);
|
intc = owner()->siblingdevice<h8_intc_device>(intc_tag);
|
||||||
channel_active = false;
|
channel_active = false;
|
||||||
|
|
||||||
|
save_item(NAME(tgr_clearing));
|
||||||
|
save_item(NAME(tcr));
|
||||||
|
save_item(NAME(tier));
|
||||||
|
save_item(NAME(ier));
|
||||||
|
save_item(NAME(isr));
|
||||||
|
save_item(NAME(clock_type));
|
||||||
|
save_item(NAME(clock_divider));
|
||||||
|
save_item(NAME(tcnt));
|
||||||
|
save_item(NAME(tgr));
|
||||||
|
save_item(NAME(last_clock_update));
|
||||||
|
save_item(NAME(event_time));
|
||||||
|
save_item(NAME(phase));
|
||||||
|
save_item(NAME(counter_cycle));
|
||||||
|
save_item(NAME(counter_incrementing));
|
||||||
|
save_item(NAME(channel_active));
|
||||||
}
|
}
|
||||||
|
|
||||||
void h8_timer16_channel_device::device_reset()
|
void h8_timer16_channel_device::device_reset()
|
||||||
@ -330,6 +346,8 @@ void h8_timer16_device::device_start()
|
|||||||
sprintf(tm, "%d", i);
|
sprintf(tm, "%d", i);
|
||||||
timer_channel[i] = subdevice<h8_timer16_channel_device>(tm);
|
timer_channel[i] = subdevice<h8_timer16_channel_device>(tm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
save_item(NAME(tstr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void h8_timer16_device::device_reset()
|
void h8_timer16_device::device_reset()
|
||||||
|
Loading…
Reference in New Issue
Block a user