GBA Core: VLP fixes

This commit is contained in:
Vicki Pfau 2019-06-01 14:30:44 -07:00
parent f41f3a8478
commit 59d2e58bbb
1 changed files with 2 additions and 0 deletions

View File

@ -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;
} }