Replay: Properly load RTC time on load file.

This commit is contained in:
Unknown W. Brackets committed 2021-05-29 14:50:57 -07:00
1 parent 64e007c0ce
commit 85c64d3ec3
2 files changed
+61 -4

No files matched your search

+2
View File
@@ -206,6 +206,8 @@ bool ReplayExecuteFile(const Path &filename) {
WARN_LOG(SYSTEM, "Replay version %d scary and futuristic, trying anyway", fh.version);
}
RtcSetBaseTime((int32_t)fh.rtcBaseSeconds, 0);
data.resize(sz);
if (fread(&data[0], sz, 1, fp) != 1) {