* Save HotkeyList to IniFile. * @param ini IniFile to save to. */
| 284 | * @param ini IniFile to save to. |
| 285 | */ |
| 286 | void HotkeyList::Save(IniFile &ini) const |
| 287 | { |
| 288 | IniGroup &group = ini.GetOrCreateGroup(this->ini_group); |
| 289 | for (const Hotkey &hotkey : this->items) { |
| 290 | IniItem &item = group.GetOrCreateItem(hotkey.name); |
| 291 | item.SetValue(SaveKeycodes(hotkey)); |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | /** |
| 296 | * Check if a keycode is bound to something. |
no test coverage detected