mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add some additional and mostly pointless accuracy.
This commit is contained in:
parent
8e69b70bf5
commit
a8c7421a0b
1 changed files with 2 additions and 2 deletions
|
@ -115,14 +115,14 @@ void __RtcInit()
|
|||
rtcBaseTime.tv_sec = tv.tv_sec;
|
||||
rtcBaseTime.tv_usec = tv.tv_usec;
|
||||
// Precalculate the current time in microseconds (rtcMagicOffset is offset to 1970.)
|
||||
rtcBaseTicks = 1000000ULL * rtcBaseTime.tv_sec + rtcMagicOffset;
|
||||
rtcBaseTicks = 1000000ULL * rtcBaseTime.tv_sec + rtcBaseTime.tv_usec + rtcMagicOffset;
|
||||
}
|
||||
|
||||
void __RtcDoState(PointerWrap &p)
|
||||
{
|
||||
p.Do(rtcBaseTime);
|
||||
// Update the precalc, pointless to savestate this as it's just based on the other value.
|
||||
rtcBaseTicks = 1000000ULL * rtcBaseTime.tv_sec + rtcMagicOffset;
|
||||
rtcBaseTicks = 1000000ULL * rtcBaseTime.tv_sec + rtcBaseTime.tv_usec + rtcMagicOffset;
|
||||
|
||||
p.DoMarker("sceRtc");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue