mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix logging moving events
This commit is contained in:
parent
f22391275b
commit
968069ff5e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue