From b770bbea2eb3358a0dfcb5432653c7280aab1acd Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Thu, 2 Dec 2021 11:21:12 +0200 Subject: [PATCH] Fix save state issue that caused vblank callbacks timings to differ --- Core/save_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/save_state.c b/Core/save_state.c index 7e1767c..eefdd08 100644 --- a/Core/save_state.c +++ b/Core/save_state.c @@ -347,7 +347,7 @@ static void sanitize_state(GB_gameboy_t *gb) gb->window_tile_x &= 0x1F; /* These are kind of DOS-ish if too large */ - if (abs(gb->display_cycles) > 0x8000) { + if (abs(gb->display_cycles) > 0x80000) { gb->display_cycles = 0; }