all repos — mgba @ ba566f334d4b7d34d7572a9fde8d7510d07ff162

mGBA Game Boy Advance Emulator

GB Core: Add reload config option for SGB borders
Vicki Pfau vi@endrift.com
Sun, 11 Oct 2020 22:42:23 -0700
commit

ba566f334d4b7d34d7572a9fde8d7510d07ff162

parent

8b8ff65821357ba2e436ce799b17c86be8d45730

2 files changed, 6 insertions(+), 1 deletions(-)

jump to
M src/gb/core.csrc/gb/core.c

@@ -292,6 +292,12 @@ gb->allowOpposingDirections = fakeBool;

} return; } + if (strcmp("sgb.borders", option) == 0) { + if (mCoreConfigGetIntValue(config, "sgb.borders", &fakeBool)) { + gb->video.sgbBorders = fakeBool; + gb->video.renderer->enableSGBBorder(gb->video.renderer, fakeBool); + } + } } static void _GBCoreDesiredVideoDimensions(const struct mCore* core, unsigned* width, unsigned* height) {
M src/gb/serialize.csrc/gb/serialize.c

@@ -256,7 +256,6 @@ }

if (gb->video.renderer->sgbAttributes) { memcpy(state->sgb.attributes, gb->video.renderer->sgbAttributes, sizeof(state->sgb.attributes)); } - gb->video.renderer->enableSGBBorder(gb->video.renderer, gb->video.sgbBorders); } void GBSGBDeserialize(struct GB* gb, const struct GBSerializedState* state) {