mirror of https://github.com/mgba-emu/mgba.git
Ports: Ability to enable or disable all SGB features (closes #1205)
This commit is contained in:
parent
c5fc0f0492
commit
e34c529f7e
1
CHANGES
1
CHANGES
|
@ -13,6 +13,7 @@ Features:
|
||||||
- Interframe blending for games that use flicker effects
|
- Interframe blending for games that use flicker effects
|
||||||
- Frame inspector for dissecting and debugging rendering
|
- Frame inspector for dissecting and debugging rendering
|
||||||
- Switch: Option to use built-in brightness sensor for Boktai
|
- 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:
|
Emulation fixes:
|
||||||
- GBA: All IRQs have 7 cycle delay (fixes mgba.io/i/539, mgba.io/i/1208)
|
- GBA: All IRQs have 7 cycle delay (fixes mgba.io/i/539, mgba.io/i/1208)
|
||||||
- GBA: Reset now reloads multiboot ROMs
|
- GBA: Reset now reloads multiboot ROMs
|
||||||
|
|
|
@ -118,6 +118,20 @@ void mGUIShowConfig(struct mGUIRunner* runner, struct GUIMenuItem* extra, size_t
|
||||||
},
|
},
|
||||||
.nStates = 2
|
.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) {
|
*GUIMenuItemListAppend(&menu.items) = (struct GUIMenuItem) {
|
||||||
.title = "Enable SGB borders",
|
.title = "Enable SGB borders",
|
||||||
.data = "sgb.borders",
|
.data = "sgb.borders",
|
||||||
|
@ -173,8 +187,6 @@ void mGUIShowConfig(struct mGUIRunner* runner, struct GUIMenuItem* extra, size_t
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (item->stateMappings) {
|
if (item->stateMappings) {
|
||||||
item->state = 0;
|
|
||||||
|
|
||||||
size_t j;
|
size_t j;
|
||||||
for (j = 0; j < item->nStates; ++j) {
|
for (j = 0; j < item->nStates; ++j) {
|
||||||
const struct GUIVariant* v = &item->stateMappings[j];
|
const struct GUIVariant* v = &item->stateMappings[j];
|
||||||
|
|
Loading…
Reference in New Issue