all repos — mgba @ e34c529f7edda021bcf6121b503eaf2f62eb9481

mGBA Game Boy Advance Emulator

Ports: Ability to enable or disable all SGB features (closes #1205)
Vicki Pfau vi@endrift.com
Wed, 05 Jun 2019 12:55:30 -0700
commit

e34c529f7edda021bcf6121b503eaf2f62eb9481

parent

c5fc0f0492e0c94128b2286b65ec5e2ab8d1211a

2 files changed, 15 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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];