MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ResetToDefault

Method ResetToDefault

src/settings.cpp:766–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764}
765
766void IntSettingDesc::ResetToDefault(void *object) const
767{
768 this->Write(object, this->GetDefaultValue());
769}
770
771std::string StringSettingDesc::FormatValue(const void *object) const
772{

Callers 1

ResetSettingsFunction · 0.45

Calls 3

WriteMethod · 0.95
GetDefaultValueMethod · 0.95
NOT_REACHEDFunction · 0.85

Tested by

no test coverage detected