diff options
| author | 2016-10-09 21:53:38 -0400 | |
|---|---|---|
| committer | 2016-10-09 22:04:32 -0400 | |
| commit | 0d2d4cab4fdfa14d2ef65f2245e82ca4a5c8f2fd (patch) | |
| tree | e7b7ee41c5f392d750f2268d459f81d3c6839f7d /src/emu/dirtc.cpp | |
| parent | fd94538c211312aff801ee3decfb1e090ad40218 (diff) | |
Soft resets no longer turn back clocks on devices
device_rtc_interface: Cleanups and refinements (nw)
- Give RTCs their own phase of machine initialization, right after NVRAM loading
- Make RTC feature flag overrides const, including one new one
- Make rtc_clock_updated a required override
Diffstat (limited to 'src/emu/dirtc.cpp')
| -rw-r--r-- | src/emu/dirtc.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/emu/dirtc.cpp b/src/emu/dirtc.cpp index 912c49d538d..3dd961c2aa6 100644 --- a/src/emu/dirtc.cpp +++ b/src/emu/dirtc.cpp @@ -9,7 +9,7 @@ ***************************************************************************/ #include "emu.h" - +#include "dirtc.h" //************************************************************************** @@ -76,11 +76,8 @@ void device_rtc_interface::set_time(bool update, int year, int month, int day, i // to the current system time //------------------------------------------------- -void device_rtc_interface::set_current_time(running_machine &machine) +void device_rtc_interface::set_current_time(const system_time &systime) { - system_time systime; - machine.base_datetime(systime); - set_time(true, systime.local_time.year, systime.local_time.month + 1, systime.local_time.mday, systime.local_time.weekday + 1, systime.local_time.hour, systime.local_time.minute, systime.local_time.second); } |
