MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setDefaultValue

Method setDefaultValue

Engine/source/util/settings.cpp:53–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void Settings::setDefaultValue(const UTF8 *settingName, const UTF8 *settingValue, const UTF8 *settingType)
54{
55 String baseName;
56 buildGroupString(baseName, settingName);
57 String name = baseName + "_default";
58 StringTableEntry nameEntry = StringTable->insert(name.c_str());
59 String type = baseName + "_type";
60 StringTableEntry typeEntry = StringTable->insert(type.c_str());
61
62 setModStaticFields(false);
63 setDataField(nameEntry, NULL, settingValue);
64 setDataField(typeEntry, NULL, settingType);
65 setModStaticFields(true);
66}
67
68void Settings::setValue(const UTF8 *settingName, const UTF8 *settingValue)
69{

Callers 1

settings.cppFile · 0.45

Calls 2

insertMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected