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) {
|
if (threadContext) {
|
||||||
logLevel = threadContext->logLevel;
|
logLevel = threadContext->logLevel;
|
||||||
|
gba = threadContext->gba;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(level & logLevel) && level != GBA_LOG_FATAL) {
|
if (!(level & logLevel) && level != GBA_LOG_FATAL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (level == GBA_LOG_FATAL && gba) {
|
||||||
gba->cpu->nextEvent = 0;
|
gba->cpu->nextEvent = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (threadContext) {
|
if (threadContext) {
|
||||||
if (level == GBA_LOG_FATAL) {
|
if (level == GBA_LOG_FATAL) {
|
||||||
MutexLock(&threadContext->stateMutex);
|
MutexLock(&threadContext->stateMutex);
|
||||||
|
|
Loading…
Reference in New Issue