mirror of
https://github.com/holub/mame
synced 2025-04-19 23:12:11 +03:00
video.cpp: Restart time counters after loading a save state
This commit is contained in:
parent
121bf26ea6
commit
77834407f2
@ -507,8 +507,18 @@ void video_manager::screenless_update_callback(void *ptr, int param)
|
||||
|
||||
void video_manager::postload()
|
||||
{
|
||||
attotime const emutime = machine().time();
|
||||
for (const auto &x : m_movie_recordings)
|
||||
x->set_next_frame_time(machine().time());
|
||||
x->set_next_frame_time(emutime);
|
||||
|
||||
// restart time counters
|
||||
m_speed_last_realtime = osd_ticks();
|
||||
m_speed_last_emutime = emutime;
|
||||
m_speed_percent = 1.0;
|
||||
m_overall_valid_counter = 0;
|
||||
m_overall_real_ticks = 0;
|
||||
m_overall_real_seconds = 0;
|
||||
m_overall_emutime = attotime::zero;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user