all repos — mgba @ 968069ff5e9258ed6ceb1e033a6ebf84bd63cfa0

mGBA Game Boy Advance Emulator

GBA: Fix logging moving events
Jeffrey Pfau jeffrey@endrift.com
Thu, 08 Jan 2015 23:46:17 -0800
commit

968069ff5e9258ed6ceb1e033a6ebf84bd63cfa0

parent

f22391275b49bcec3d94fb5e63c9983aef3ee0c3

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M src/gba/gba.csrc/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);