| 475 | //==================================================================== |
| 476 | |
| 477 | void FConfigFile::SetValueForKey (const char *key, const char *value, bool duplicates) |
| 478 | { |
| 479 | if (CurrentSection != NULL) |
| 480 | { |
| 481 | FConfigEntry *entry; |
| 482 | |
| 483 | if (duplicates || (entry = FindEntry (CurrentSection, key)) == NULL) |
| 484 | { |
| 485 | NewConfigEntry (CurrentSection, key, value); |
| 486 | } |
| 487 | else |
| 488 | { |
| 489 | entry->SetValue (value); |
| 490 | } |
| 491 | } |
| 492 | } |
| 493 | |
| 494 | //==================================================================== |
| 495 | // |
no test coverage detected