all repos — mgba @ 0fdc3436895a2b21afdf17069e24681f3093d211

mGBA Game Boy Advance Emulator

GB Core: Fix some MINIMAL_CORE differences
Vicki Pfau vi@endrift.com
Fri, 31 Jul 2020 17:36:59 -0700
commit

0fdc3436895a2b21afdf17069e24681f3093d211

parent

1a8657315e26f25190bfe24c75327f16974acf01

1 files changed, 9 insertions(+), 0 deletions(-)

jump to
M src/gb/core.csrc/gb/core.c

@@ -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 @@ core->timing = &gb->timing;

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));

@@ -100,6 +105,10 @@ gb->memory.rtc = &core->rtc.d;

GBVideoSoftwareRendererCreate(&gbcore->renderer); gbcore->renderer.outputBuffer = NULL; + +#ifndef MINIMAL_CORE + gbcore->proxyRenderer.logger = NULL; +#endif gbcore->keys = 0; gb->keySource = &gbcore->keys;