mirror of https://github.com/mgba-emu/mgba.git
GB Core: Fix some MINIMAL_CORE differences
This commit is contained in:
parent
1a8657315e
commit
0fdc343689
|
@ -64,8 +64,10 @@ struct mVideoLogContext;
|
||||||
struct GBCore {
|
struct GBCore {
|
||||||
struct mCore d;
|
struct mCore d;
|
||||||
struct GBVideoSoftwareRenderer renderer;
|
struct GBVideoSoftwareRenderer renderer;
|
||||||
|
#ifndef MINIMAL_CORE
|
||||||
struct GBVideoProxyRenderer proxyRenderer;
|
struct GBVideoProxyRenderer proxyRenderer;
|
||||||
struct mVideoLogContext* logContext;
|
struct mVideoLogContext* logContext;
|
||||||
|
#endif
|
||||||
struct mCoreCallbacks logCallbacks;
|
struct mCoreCallbacks logCallbacks;
|
||||||
uint8_t keys;
|
uint8_t keys;
|
||||||
struct mCPUComponent* components[CPU_COMPONENT_MAX];
|
struct mCPUComponent* components[CPU_COMPONENT_MAX];
|
||||||
|
@ -90,6 +92,9 @@ static bool _GBCoreInit(struct mCore* core) {
|
||||||
gbcore->overrides = NULL;
|
gbcore->overrides = NULL;
|
||||||
gbcore->debuggerPlatform = NULL;
|
gbcore->debuggerPlatform = NULL;
|
||||||
gbcore->cheatDevice = NULL;
|
gbcore->cheatDevice = NULL;
|
||||||
|
#ifndef MINIMAL_CORE
|
||||||
|
gbcore->logContext = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
GBCreate(gb);
|
GBCreate(gb);
|
||||||
memset(gbcore->components, 0, sizeof(gbcore->components));
|
memset(gbcore->components, 0, sizeof(gbcore->components));
|
||||||
|
@ -101,6 +106,10 @@ static bool _GBCoreInit(struct mCore* core) {
|
||||||
GBVideoSoftwareRendererCreate(&gbcore->renderer);
|
GBVideoSoftwareRendererCreate(&gbcore->renderer);
|
||||||
gbcore->renderer.outputBuffer = NULL;
|
gbcore->renderer.outputBuffer = NULL;
|
||||||
|
|
||||||
|
#ifndef MINIMAL_CORE
|
||||||
|
gbcore->proxyRenderer.logger = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
gbcore->keys = 0;
|
gbcore->keys = 0;
|
||||||
gb->keySource = &gbcore->keys;
|
gb->keySource = &gbcore->keys;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue