mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix non-PNG savestate loading
This commit is contained in:
parent
77787a957c
commit
89d53868da
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue