From b913419069b360ac1b2a51ef836e9a44c75bf966 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 14 Oct 2018 11:25:02 -0700 Subject: [PATCH] Core: Expose timing --- include/mgba/core/core.h | 1 + src/gb/core.c | 1 + src/gba/core.c | 1 + 3 files changed, 3 insertions(+) diff --git a/include/mgba/core/core.h b/include/mgba/core/core.h index 96a9324f2..569b55f82 100644 --- a/include/mgba/core/core.h +++ b/include/mgba/core/core.h @@ -44,6 +44,7 @@ struct mVideoLogContext; struct mCore { void* cpu; void* board; + struct mTiming* timing; struct mDebugger* debugger; struct mDebuggerSymbols* symbolTable; diff --git a/src/gb/core.c b/src/gb/core.c index 5185e9a69..c0c4f50da 100644 --- a/src/gb/core.c +++ b/src/gb/core.c @@ -99,6 +99,7 @@ static bool _GBCoreInit(struct mCore* core) { } core->cpu = cpu; core->board = gb; + core->timing = &gb->timing; gbcore->overrides = NULL; gbcore->debuggerPlatform = NULL; gbcore->cheatDevice = NULL; diff --git a/src/gba/core.c b/src/gba/core.c index 05225bc56..93dc98d84 100644 --- a/src/gba/core.c +++ b/src/gba/core.c @@ -148,6 +148,7 @@ static bool _GBACoreInit(struct mCore* core) { } core->cpu = cpu; core->board = gba; + core->timing = &gba->timing; core->debugger = NULL; core->symbolTable = NULL; gbacore->overrides = NULL;