Ports: Ability to enable or disable all SGB features (closes #1205)
Vicki Pfau vi@endrift.com
Wed, 05 Jun 2019 12:55:30 -0700
2 files changed,
15 insertions(+),
2 deletions(-)
M
CHANGES
→
CHANGES
@@ -13,6 +13,7 @@ - Experimental high level "XQ" audio for most GBA games
- Interframe blending for games that use flicker effects - Frame inspector for dissecting and debugging rendering - Switch: Option to use built-in brightness sensor for Boktai + - Ports: Ability to enable or disable all SGB features (closes mgba.io/i/1205) Emulation fixes: - GBA: All IRQs have 7 cycle delay (fixes mgba.io/i/539, mgba.io/i/1208) - GBA: Reset now reloads multiboot ROMs
M
src/feature/gui/gui-config.c
→
src/feature/gui/gui-config.c
@@ -119,6 +119,20 @@ },
.nStates = 2 }; *GUIMenuItemListAppend(&menu.items) = (struct GUIMenuItem) { + .title = "Enable SGB features", + .data = "sgb.model", + .submenu = 0, + .state = true, + .validStates = (const char*[]) { + "Off", "On" + }, + .stateMappings = (const struct GUIVariant[]) { + GUI_V_S("DMG"), + GUI_V_S("SGB"), + }, + .nStates = 2 + }; + *GUIMenuItemListAppend(&menu.items) = (struct GUIMenuItem) { .title = "Enable SGB borders", .data = "sgb.borders", .submenu = 0,@@ -173,8 +187,6 @@ if (!item->validStates || !item->data) {
continue; } if (item->stateMappings) { - item->state = 0; - size_t j; for (j = 0; j < item->nStates; ++j) { const struct GUIVariant* v = &item->stateMappings[j];