mirror of https://github.com/mgba-emu/mgba.git
GBA: Fall back to idle loop remove mode if already present
This commit is contained in:
parent
2ddb6d759a
commit
a43c465f9f
|
@ -134,7 +134,11 @@ static void _GBACoreLoadConfig(struct mCore* core, const struct mCoreConfig* con
|
||||||
} else if (strcasecmp(idleOptimization, "remove") == 0) {
|
} else if (strcasecmp(idleOptimization, "remove") == 0) {
|
||||||
gba->idleOptimization = IDLE_LOOP_REMOVE;
|
gba->idleOptimization = IDLE_LOOP_REMOVE;
|
||||||
} else if (strcasecmp(idleOptimization, "detect") == 0) {
|
} 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue