Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
766
void IntSettingDesc::ResetToDefault(void *object) const
767
{
768
this->Write(object, this->GetDefaultValue());
769
}
770
771
std::string StringSettingDesc::FormatValue(const void *object) const
772
{
Callers
1
ResetSettings
Function · 0.45
Calls
3
Write
Method · 0.95
GetDefaultValue
Method · 0.95
NOT_REACHED
Function · 0.85
Tested by
no test coverage detected