From 89d53868da54cb0c058dd0b61c6267bdd6514012 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 12 Jan 2016 21:35:13 -0800 Subject: [PATCH] GBA: Fix non-PNG savestate loading --- src/gba/serialize.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gba/serialize.c b/src/gba/serialize.c index a3eefe2f8..8d756bd7f 100644 --- a/src/gba/serialize.c +++ b/src/gba/serialize.c @@ -461,6 +461,7 @@ struct GBASerializedState* GBAExtractState(struct VFile* vf, struct GBAExtdata* return _loadPNGState(vf, extdata); } #endif + vf->seek(vf, 0, SEEK_SET); if (vf->size(vf) < (ssize_t) sizeof(struct GBASerializedState)) { return false; }