all repos — mgba @ 89d53868da54cb0c058dd0b61c6267bdd6514012

mGBA Game Boy Advance Emulator

GBA: Fix non-PNG savestate loading
Jeffrey Pfau jeffrey@endrift.com
Tue, 12 Jan 2016 21:35:13 -0800
commit

89d53868da54cb0c058dd0b61c6267bdd6514012

parent

77787a957cb409e3dd730c50468f6e83981e8e8a

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/gba/serialize.csrc/gba/serialize.c

@@ -461,6 +461,7 @@ if (isPNG(vf)) {

return _loadPNGState(vf, extdata); } #endif + vf->seek(vf, 0, SEEK_SET); if (vf->size(vf) < (ssize_t) sizeof(struct GBASerializedState)) { return false; }