GBA: Fix logging moving events

This commit is contained in:
Jeffrey Pfau 2015-01-08 23:46:17 -08:00
parent f22391275b
commit 968069ff5e
1 changed files with 5 additions and 1 deletions

View File

@ -613,13 +613,17 @@ static void _GBAVLog(struct GBA* gba, enum GBALogLevel level, const char* format
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);