all repos — mgba @ eabdbe97eaf5fdbd109660d80874c3c0b7c297a4

mGBA Game Boy Advance Emulator

mGUI: Don't save config menu markers
Vicki Pfau vi@endrift.com
Sat, 29 Sep 2018 12:05:41 -0700
commit

eabdbe97eaf5fdbd109660d80874c3c0b7c297a4

parent

8a006bc9c47b033ccb0f6e7492e59c7726def637

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

jump to
M src/feature/gui/gui-config.csrc/feature/gui/gui-config.c

@@ -228,7 +228,7 @@ mCoreConfigSetValue(&runner->config, "sgb.bios", sgbBiosPath);

} for (i = 0; i < GUIMenuItemListSize(&menu.items); ++i) { item = GUIMenuItemListGetPointer(&menu.items, i); - if (!item->validStates || !item->data) { + if (!item->validStates || !item->data || ((const char*) item->data)[0] == '*') { continue; } if (item->stateMappings) {