mirror of https://github.com/bsnes-emu/bsnes.git
a9571ff5b8
Loading and unloading the RTC is a little odd, since it's normally always powered in the first place. What we want, and what the load() functions really do, is to resync using the saved timestamps or reset it. unload() proper doesn't do anything. However, an interface refactoring after v098 reordered the above operations, and this (along with a typo, shh!) was causing the already synced time to be cleared. I've added checks so that whenever rtc.ram can't be found, load() gets called with empty arguments to initialise the defaults (like putting in a fresh battery). |
||
---|---|---|
.. | ||
armdsp | ||
epsonrtc | ||
event | ||
hitachidsp | ||
icd2 | ||
mcc | ||
msu1 | ||
necdsp | ||
nss | ||
obc1 | ||
sa1 | ||
sdd1 | ||
sharprtc | ||
spc7110 | ||
superfx | ||
coprocessor.hpp |