GBA: Fall back to idle loop remove mode if already present
Jeffrey Pfau jeffrey@endrift.com
Wed, 24 Aug 2016 12:55:25 -0700
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
src/gba/core.c
→
src/gba/core.c
@@ -134,7 +134,11 @@ gba->idleOptimization = IDLE_LOOP_IGNORE;
} else if (strcasecmp(idleOptimization, "remove") == 0) { gba->idleOptimization = IDLE_LOOP_REMOVE; } else if (strcasecmp(idleOptimization, "detect") == 0) { - gba->idleOptimization = IDLE_LOOP_DETECT; + if (gba->idleLoop == IDLE_LOOP_NONE) { + gba->idleOptimization = IDLE_LOOP_DETECT; + } else { + gba->idleOptimization = IDLE_LOOP_REMOVE; + } } }