mirror of https://github.com/mgba-emu/mgba.git
GBA Core: VLP fixes
This commit is contained in:
parent
f41f3a8478
commit
59d2e58bbb
|
@ -1094,6 +1094,7 @@ static void _GBAVLPStartFrameCallback(void *context) {
|
||||||
GBAVideoProxyRendererUnshim(&gba->video, &gbacore->proxyRenderer);
|
GBAVideoProxyRendererUnshim(&gba->video, &gbacore->proxyRenderer);
|
||||||
mVideoLogContextRewind(gbacore->logContext, core);
|
mVideoLogContextRewind(gbacore->logContext, core);
|
||||||
GBAVideoProxyRendererShim(&gba->video, &gbacore->proxyRenderer);
|
GBAVideoProxyRendererShim(&gba->video, &gbacore->proxyRenderer);
|
||||||
|
gba->earlyExit = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1109,6 +1110,7 @@ static bool _GBAVLPInit(struct mCore* core) {
|
||||||
gbacore->logCallbacks.videoFrameStarted = _GBAVLPStartFrameCallback;
|
gbacore->logCallbacks.videoFrameStarted = _GBAVLPStartFrameCallback;
|
||||||
gbacore->logCallbacks.context = core;
|
gbacore->logCallbacks.context = core;
|
||||||
core->addCoreCallbacks(core, &gbacore->logCallbacks);
|
core->addCoreCallbacks(core, &gbacore->logCallbacks);
|
||||||
|
core->videoLogger = gbacore->proxyRenderer.logger;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue