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

Method writeConfig

source/game/StarRoot.cpp:731–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731void Root::writeConfig() {
732 if (m_configuration) {
733 auto currentConfig = m_configuration->currentConfiguration();
734 if (m_lastRuntimeConfig != currentConfig) {
735 if (m_runtimeConfigFile) {
736 Logger::info("Root: Writing runtime configuration to '{}'", *m_runtimeConfigFile);
737 File::overwriteFileWithRename(m_configuration->printConfiguration(), *m_runtimeConfigFile);
738 }
739 m_lastRuntimeConfig = currentConfig;
740 }
741 }
742}
743
744template <typename T, typename... Params>
745shared_ptr<T> Root::loadMember(shared_ptr<T>& ptr, Mutex& mutex, char const* name, Params&&... params) {

Callers

nothing calls this directly

Calls 2

currentConfigurationMethod · 0.80
printConfigurationMethod · 0.80

Tested by

no test coverage detected