git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit dab1c1bcfa0794b1db874ceb7f55ef605b51f0f2
parent 832dc127a4c81ce1fe79bc0c44415317ea9ae295
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 22 Aug 2020 14:10:02 +0300

Fix RTC drift

Diffstat:
MCore/timing.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Core/timing.c b/Core/timing.c @@ -296,7 +296,7 @@ void GB_rtc_run(GB_gameboy_t *gb) time_t current_time = time(NULL); while (gb->last_rtc_second + 60 * 60 * 24 < current_time) { - gb->last_rtc_second += 60 * 60 + 24; + gb->last_rtc_second += 60 * 60 * 24; if (++gb->rtc_real.days == 0) { if (gb->rtc_real.high & 1) { /* Bit 8 of days*/ gb->rtc_real.high |= 0x80; /* Overflow bit */

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.