all repos — mgba @ 075308e837ea70061044e6a6bc0b1b3015ccb084

mGBA Game Boy Advance Emulator

GBA Thread: Make sure idle loop setting is set at the right time
Jeffrey Pfau jeffrey@endrift.com
Sat, 24 Jan 2015 14:42:35 -0800
commit

075308e837ea70061044e6a6bc0b1b3015ccb084

parent

dba275c5705f54501ae6819fb34b9f93a29185c6

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

jump to
M src/gba/gba-thread.csrc/gba/gba-thread.c

@@ -124,6 +124,7 @@ ARMInit(&cpu);

gba.sync = &threadContext->sync; threadContext->gba = &gba; gba.logLevel = threadContext->logLevel; + gba.idleOptimization = threadContext->idleOptimization; #ifdef USE_PTHREADS pthread_setspecific(_contextKey, threadContext); #else

@@ -173,7 +174,6 @@

GBASIOSetDriverSet(&gba.sio, &threadContext->sioDrivers); gba.keySource = &threadContext->activeKeys; - gba.idleOptimization = threadContext->idleOptimization; if (threadContext->startCallback) { threadContext->startCallback(threadContext);