mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
GLideNUI: implement hotkeys in saveCustomRomSettings
This commit is contained in:
parent
0577580fc3
commit
532eff450e
|
@ -513,6 +513,19 @@ void saveCustomRomSettings(const QString & _strIniFolder, const char * _strRomNa
|
||||||
WriteCustomSetting2(onScreenDisplay, osdPos, pos);
|
WriteCustomSetting2(onScreenDisplay, osdPos, pos);
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
|
settings.beginGroup("hotkeys");
|
||||||
|
for (u32 idx = 0; idx < Config::HotKey::hkTotal; ++idx) {
|
||||||
|
if (origConfig.hotkeys.keys[idx] != config.hotkeys.keys[idx] ||
|
||||||
|
origConfig.hotkeys.keys[idx] != settings.value(Config::hotkeyIniName(idx), config.hotkeys.keys[idx]).toInt()) {
|
||||||
|
settings.setValue(Config::hotkeyIniName(idx), config.hotkeys.keys[idx]);
|
||||||
|
}
|
||||||
|
if (origConfig.hotkeys.enabledKeys[idx] != config.hotkeys.enabledKeys[idx] ||
|
||||||
|
origConfig.hotkeys.enabledKeys[idx] != settings.value(Config::enabledHotkeyIniName(idx), config.hotkeys.enabledKeys[idx]).toInt()) {
|
||||||
|
settings.setValue(Config::enabledHotkeyIniName(idx), config.hotkeys.enabledKeys[idx]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
settings.endGroup();
|
||||||
|
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user