GUI: Save the keymap when saving the rest of the config

This commit is contained in:
Jeffrey Pfau 2016-08-31 12:12:42 -07:00
parent e078e42c83
commit 1afed20ccc
1 changed files with 7 additions and 0 deletions

View File

@ -114,6 +114,13 @@ void mGUIShowConfig(struct mGUIRunner* runner, struct GUIMenuItem* extra, size_t
}
mCoreConfigSetUIntValue(&runner->config, item->data, item->state);
}
if (runner->keySources) {
size_t i;
for (i = 0; runner->keySources[i].id; ++i) {
mInputMapSave(&runner->core->inputMap, runner->keySources[i].id, mCoreConfigGetInput(&runner->config));
mInputMapSave(&runner->params.keyMap, runner->keySources[i].id, mCoreConfigGetInput(&runner->config));
}
}
mCoreConfigSave(&runner->config);
mCoreLoadForeignConfig(runner->core, &runner->config);
break;