GB Core: Fix GBC colors setting breaking default model overrides (fixes #2161)

This commit is contained in:
Vicki Pfau 2021-05-06 13:22:04 -07:00
parent 2a316ee1dc
commit 6b99d319fb
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@ Emulation fixes:
- GBA Video: Revert scanline latching changes (fixes mgba.io/i/2153, mgba.io/i/2149)
Other fixes:
- Core: Fix memory leak in opening games from the library
- GB Core: Fix GBC colors setting breaking default model overrides (fixes mgba.io/i/2161)
- GBA: Fix out of bounds ROM accesses on patched ROMs smaller than 32 MiB
- Qt: Fix infrequent deadlock when using sync to video
- Qt: Fix applying savetype-only overrides

View File

@ -491,7 +491,8 @@ static void _GBCoreReset(struct mCore* core) {
bool modelOverride = GBOverrideFind(gbcore->overrides, &override) || (doColorOverride && GBOverrideColorFind(&override));
if (modelOverride) {
GBOverrideApply(gb, &override);
} else {
}
if (!modelOverride || override.model == GB_MODEL_AUTODETECT) {
const char* modelGB = mCoreConfigGetValue(&core->config, "gb.model");
const char* modelSGB = mCoreConfigGetValue(&core->config, "sgb.model");
const char* modelCGB = mCoreConfigGetValue(&core->config, "cgb.model");