Skip to content

Commit

Permalink
core: initialise rtc_count on init
Browse files Browse the repository at this point in the history
Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
  • Loading branch information
deltabeard committed Dec 23, 2023
1 parent 871be2c commit d89bd2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions peanut_gb.h
Original file line number Diff line number Diff line change
Expand Up @@ -3584,6 +3584,7 @@ void gb_reset(struct gb_s *gb)
gb->counter.div_count = 0;
gb->counter.tima_count = 0;
gb->counter.serial_count = 0;
gb->counter.rtc_count = 0;

gb->direct.joypad = 0xFF;
gb->hram_io[IO_JOYP] = 0xCF;
Expand Down

0 comments on commit d89bd2a

Please sign in to comment.