mirror of https://github.com/mgba-emu/mgba.git
Core: Fix non-debugger build
This commit is contained in:
parent
bc9bb43f88
commit
7ace2ac14f
|
@ -92,12 +92,14 @@ static void _wait(struct mCoreThreadInternal* threadContext) {
|
||||||
MutexUnlock(&threadContext->sync.audioBufferMutex);
|
MutexUnlock(&threadContext->sync.audioBufferMutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef USE_DEBUGGERS
|
||||||
if (threadContext->core && threadContext->core->debugger) {
|
if (threadContext->core && threadContext->core->debugger) {
|
||||||
struct mDebugger* debugger = threadContext->core->debugger;
|
struct mDebugger* debugger = threadContext->core->debugger;
|
||||||
if (debugger->interrupt) {
|
if (debugger->interrupt) {
|
||||||
debugger->interrupt(debugger);
|
debugger->interrupt(debugger);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
MutexLock(&threadContext->stateMutex);
|
MutexLock(&threadContext->stateMutex);
|
||||||
ConditionWake(&threadContext->stateCond);
|
ConditionWake(&threadContext->stateCond);
|
||||||
|
|
Loading…
Reference in New Issue