mirror of https://github.com/mgba-emu/mgba.git
GB Core: Fix GBC colors setting breaking default model overrides (fixes #2161)
This commit is contained in:
parent
2a316ee1dc
commit
6b99d319fb
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue