GBA: Fix logging moving events
Jeffrey Pfau jeffrey@endrift.com
Thu, 08 Jan 2015 23:46:17 -0800
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba.c
→
src/gba/gba.c
@@ -613,13 +613,17 @@ }
if (threadContext) { logLevel = threadContext->logLevel; + gba = threadContext->gba; } if (!(level & logLevel) && level != GBA_LOG_FATAL) { return; } - gba->cpu->nextEvent = 0; + if (level == GBA_LOG_FATAL && gba) { + gba->cpu->nextEvent = 0; + } + if (threadContext) { if (level == GBA_LOG_FATAL) { MutexLock(&threadContext->stateMutex);