mirror of
https://github.com/libretro/mgba.git
synced 2024-11-23 16:10:01 +00:00
GB Core: Fix palette loading when loading a foreign config
This commit is contained in:
parent
64eb253c50
commit
0c0fab5402
1
CHANGES
1
CHANGES
@ -13,6 +13,7 @@ Bugfixes:
|
||||
- GB Memory: Initialize peripheral pointers
|
||||
- GB MBC: Fix SRAM sizes 4 and 5
|
||||
- GB Video: Fix 16-bit screenshots (fixes mgba.io/i/826)
|
||||
- GB Core: Fix palette loading when loading a foreign config
|
||||
Misc:
|
||||
- GBA Timer: Use global cycles for timers
|
||||
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
|
||||
|
@ -167,17 +167,17 @@ static void _GBCoreLoadConfig(struct mCore* core, const struct mCoreConfig* conf
|
||||
gb->video.frameskip = core->opts.frameskip;
|
||||
|
||||
int color;
|
||||
if (mCoreConfigGetIntValue(&core->config, "gb.pal[0]", &color)) {
|
||||
GBVideoSetPalette(&gb->video, 0, color);
|
||||
if (mCoreConfigGetIntValue(config, "gb.pal[0]", &color)) {
|
||||
GBVideoSetPalette(&gb->video, 0, color);
|
||||
}
|
||||
if (mCoreConfigGetIntValue(&core->config, "gb.pal[1]", &color)) {
|
||||
GBVideoSetPalette(&gb->video, 1, color);
|
||||
if (mCoreConfigGetIntValue(config, "gb.pal[1]", &color)) {
|
||||
GBVideoSetPalette(&gb->video, 1, color);
|
||||
}
|
||||
if (mCoreConfigGetIntValue(&core->config, "gb.pal[2]", &color)) {
|
||||
GBVideoSetPalette(&gb->video, 2, color);
|
||||
if (mCoreConfigGetIntValue(config, "gb.pal[2]", &color)) {
|
||||
GBVideoSetPalette(&gb->video, 2, color);
|
||||
}
|
||||
if (mCoreConfigGetIntValue(&core->config, "gb.pal[3]", &color)) {
|
||||
GBVideoSetPalette(&gb->video, 3, color);
|
||||
if (mCoreConfigGetIntValue(config, "gb.pal[3]", &color)) {
|
||||
GBVideoSetPalette(&gb->video, 3, color);
|
||||
}
|
||||
|
||||
mCoreConfigCopyValue(&core->config, config, "gb.bios");
|
||||
|
Loading…
Reference in New Issue
Block a user