MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / InitDefaultConfiguration

Function InitDefaultConfiguration

TombEngine/Specific/configuration.cpp:313–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void InitDefaultConfiguration()
314{
315 // Include default device into the list
316 BASS_SetConfig(BASS_CONFIG_DEV_DEFAULT, true);
317
318 auto currentScreenResolution = GetScreenResolution();
319
320 g_Configuration.ScreenWidth = currentScreenResolution.x;
321 g_Configuration.ScreenHeight = currentScreenResolution.y;
322 g_Configuration.ShadowType = ShadowMode::Player;
323 g_Configuration.ShadowMapSize = GameConfiguration::DEFAULT_SHADOW_MAP_SIZE;
324 g_Configuration.ShadowBlobsMax = GameConfiguration::DEFAULT_SHADOW_BLOBS_MAX;
325 g_Configuration.EnableCaustics = true;
326 g_Configuration.EnableDecals = true;
327 g_Configuration.AntialiasingMode = AntialiasingMode::Medium;
328 g_Configuration.EnableAmbientOcclusion = true;
329 g_Configuration.EnableHighFramerate = true;
330
331 g_Configuration.SoundDevice = 1;
332 g_Configuration.EnableSound = true;
333 g_Configuration.EnableReverb = true;
334 g_Configuration.MusicVolume = 100;
335 g_Configuration.SfxVolume = 100;
336
337 g_Configuration.EnableSubtitles = true;
338 g_Configuration.EnableAutoMonkeySwingJump = false;
339 g_Configuration.EnableAutoTargeting = true;
340 g_Configuration.EnableTargetHighlighter = true;
341 g_Configuration.EnableInteractionHighlighter = true;
342 g_Configuration.EnableRumble = true;
343 g_Configuration.EnableThumbstickCamera = false;
344
345 g_Configuration.MouseSensitivity = GameConfiguration::DEFAULT_MOUSE_SENSITIVITY;
346 g_Configuration.MenuOptionLoopingMode = MenuOptionLoopingMode::SaveLoadOnly;
347
348 g_Configuration.SupportedScreenResolutions = GetAllSupportedScreenResolutions();
349 g_Configuration.AdapterName = g_Renderer.GetDefaultAdapterName();
350}
351
352bool LoadConfiguration()
353{

Callers 1

WinMainFunction · 0.85

Calls 3

GetScreenResolutionFunction · 0.85
GetDefaultAdapterNameMethod · 0.80

Tested by

no test coverage detected