| 180 | } |
| 181 | |
| 182 | void Options_SetString(const cc_string* key, const cc_string* value) { |
| 183 | if (!value || !value->length) { |
| 184 | if (!EntryList_Remove(&Options, key, '=')) return; |
| 185 | } else { |
| 186 | EntryList_Set(&Options, key, value, '='); |
| 187 | } |
| 188 | |
| 189 | #if defined OPTIONS_SAVE_IMMEDIATELY |
| 190 | if (!savingPaused) SaveOptions(); |
| 191 | #endif |
| 192 | |
| 193 | if (HasChanged(key)) return; |
| 194 | StringsBuffer_Add(&changedOpts, key); |
| 195 | } |
| 196 | |
| 197 | void Options_SetSecure(const char* opt, const cc_string* src) { |
| 198 | char data[2000], encData[1500+1]; |
no test coverage detected