Skip to content

Commit

Permalink
Do not default EAX to on when running on Windows versions with hardwa…
Browse files Browse the repository at this point in the history
…re EAX

Bad sound drivers can cause a BSOD
  • Loading branch information
Aerocatia committed Aug 21, 2024
1 parent 4578410 commit 8ce659c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/chimera/chimera.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-3.0-only

#include <windows.h>
#include <versionhelpers.h>
#include <iostream>
#include <fstream>
#include <cstring>
Expand Down Expand Up @@ -183,8 +184,11 @@ namespace Chimera {
// No more updates
enable_block_update_check();

// Make the game use max settings as default because it's not 2003 anymore
set_up_sane_defaults();
// Make the game use max settings as default because it's not 2003 anymore (except when it is)
// Defaulting EAX to on is not safe on Windows XP, bad drivers can cause a BSOD.
if(IsWindowsVistaOrGreater()) {
set_up_sane_defaults();
}

// Prevent some annoying registry checks that just make the game slower
remove_registry_checks();
Expand Down

0 comments on commit 8ce659c

Please sign in to comment.