| 311 | } |
| 312 | |
| 313 | void 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 | |
| 352 | bool LoadConfiguration() |
| 353 | { |
no test coverage detected