MCPcopy Create free account
hub / github.com/ZDoom/Raze / SetValueForKey

Method SetValueForKey

source/common/utility/configfile.cpp:477–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475//====================================================================
476
477void 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//

Callers 5

ArchiveMethod · 0.45
C_ArchiveCVarsFunction · 0.45
ArchiveBindingsMethod · 0.45
M_SaveJoystickConfigFunction · 0.45
SaveGainsFunction · 0.45

Calls 1

SetValueMethod · 0.45

Tested by

no test coverage detected