MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / LoadDefaults

Method LoadDefaults

engine/Poseidon/Core/Config/Configuration.cpp:116–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void ConfigurationSystem::LoadDefaults()
117{
118 LOG_TRACE(Config, " [1/2] Loading defaults...");
119
120 // EngineConfig already has defaults from its constructor. Mirror
121 // the user-facing keys into the string map so GetInt / GetString
122 // continue to work for callers that take the named-key route.
123 SetValue("display.width", "800", "default");
124 SetValue("display.height", "600", "default");
125 SetValue("display.windowed", "false", "default");
126 SetValue("display.bpp", "32", "default");
127 SetValue("display.refresh", "60", "default");
128
129 SetValue("graphics.lod", "1.0", "default");
130 SetValue("graphics.shadows_lod", "0.025", "default");
131 SetValue("graphics.terrain_detail", "50.0", "default");
132 SetValue("graphics.hw_tnl", "true", "default");
133
134 SetValue("audio.backend", "openal", "default");
135
136 SetValue("language", "English", "default");
137 SetValue("network.port", "1985", "default");
138 SetValue("network.master_server", DefaultMasterServer, "default");
139}
140
141void ConfigurationSystem::ApplyCommandLine(const AppConfig& cliArgs)
142{

Callers

nothing calls this directly

Calls 1

SetValueFunction · 0.85

Tested by

no test coverage detected