From 3d8232eb3ca3c4e99e3357ef557a602ad8b61639 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 2 Aug 2017 23:39:56 -0700 Subject: [PATCH] GB Serialize: Fix deserializing video STAT --- CHANGES | 1 + src/gb/io.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index a1a15ec86..04e187dbb 100644 --- a/CHANGES +++ b/CHANGES @@ -13,6 +13,7 @@ Bugfixes: - GB, GBA: Fix crashes when attempting to identify null VFiles - GB MBC: Fix RTC initialization (fixes mgba.io/i/825) - GB MBC: Fix RTC loading when file size is off + - GB Serialize: Fix deserializing video STAT Misc: - Qt: Don't rebuild library view if style hasn't changed - SDL: Fix 2.0.5 build on macOS under some circumstances diff --git a/src/gb/io.c b/src/gb/io.c index 3be656499..864983719 100644 --- a/src/gb/io.c +++ b/src/gb/io.c @@ -585,4 +585,5 @@ void GBIODeserialize(struct GB* gb, const struct GBSerializedState* state) { gb->video.renderer->writeVideoRegister(gb->video.renderer, REG_SCX, state->io[REG_SCX]); gb->video.renderer->writeVideoRegister(gb->video.renderer, REG_WY, state->io[REG_WY]); gb->video.renderer->writeVideoRegister(gb->video.renderer, REG_WX, state->io[REG_WX]); + gb->video.stat = state->io[REG_STAT]; }