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

Method setPath

source/base/StarConfiguration.cpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void Configuration::setPath(String const& path, Json const& value) {
56 MutexLocker locker(m_mutex);
57 if (path.splitAny("[].").get(0) == "configurationVersion")
58 throw ConfigurationException("cannot set configurationVersion");
59
60 if (value)
61 m_currentConfig = m_currentConfig.setPath(path, value);
62 else
63 m_currentConfig = m_currentConfig.erasePath(path);
64}
65
66}

Callers

nothing calls this directly

Calls 3

splitAnyMethod · 0.80
erasePathMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected