GB Core: Fix some MINIMAL_CORE differences

This commit is contained in:
Vicki Pfau 2020-07-31 17:36:59 -07:00
parent 1a8657315e
commit 0fdc343689
1 changed files with 9 additions and 0 deletions

View File

@ -64,8 +64,10 @@ struct mVideoLogContext;
struct GBCore {
struct mCore d;
struct GBVideoSoftwareRenderer renderer;
#ifndef MINIMAL_CORE
struct GBVideoProxyRenderer proxyRenderer;
struct mVideoLogContext* logContext;
#endif
struct mCoreCallbacks logCallbacks;
uint8_t keys;
struct mCPUComponent* components[CPU_COMPONENT_MAX];
@ -90,6 +92,9 @@ static bool _GBCoreInit(struct mCore* core) {
gbcore->overrides = NULL;
gbcore->debuggerPlatform = NULL;
gbcore->cheatDevice = NULL;
#ifndef MINIMAL_CORE
gbcore->logContext = NULL;
#endif
GBCreate(gb);
memset(gbcore->components, 0, sizeof(gbcore->components));
@ -101,6 +106,10 @@ static bool _GBCoreInit(struct mCore* core) {
GBVideoSoftwareRendererCreate(&gbcore->renderer);
gbcore->renderer.outputBuffer = NULL;
#ifndef MINIMAL_CORE
gbcore->proxyRenderer.logger = NULL;
#endif
gbcore->keys = 0;
gb->keySource = &gbcore->keys;