MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / set

Method set

source/base/StarConfiguration.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void Configuration::set(String const& key, Json const& value) {
45 MutexLocker locker(m_mutex);
46 if (key == "configurationVersion")
47 throw ConfigurationException("cannot set configurationVersion");
48
49 if (value)
50 m_currentConfig = m_currentConfig.set(key, value);
51 else
52 m_currentConfig = m_currentConfig.eraseKey(key);
53}
54
55void Configuration::setPath(String const& path, Json const& value) {
56 MutexLocker locker(m_mutex);

Callers 3

AssetsMethod · 0.45
calculateMethod · 0.45
makeMethod · 0.45

Calls 1

eraseKeyMethod · 0.45

Tested by

no test coverage detected