mirror of https://github.com/mgba-emu/mgba.git
Core: Fix creating mVL contexts dropping the savestate
This commit is contained in:
parent
b072cb40cb
commit
1c85dba0df
|
@ -516,7 +516,7 @@ struct mVideoLogContext* mVideoLogContextCreate(struct mCore* core) {
|
|||
context->initialStateSize = vf->size(vf);
|
||||
context->initialState = anonymousMemoryMap(context->initialStateSize);
|
||||
vf->seek(vf, 0, SEEK_SET);
|
||||
vf->write(vf, context->initialState, context->initialStateSize);
|
||||
vf->read(vf, context->initialState, context->initialStateSize);
|
||||
vf->close(vf);
|
||||
core->startVideoLog(core, context);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue