sound: Refuse to start with SDL 2.0.6.
It's known now (#945) that the game is unusable with SDL 2.0.6 due to a crash bug in the sound code. To avoid recurring bug reports about this, add a guard in the sound startup code that will cause the game startup to abort if the user has v2.0.6 installed.
This commit is contained in:
parent
b2efcd1394
commit
4edede3f4a
1 changed files with 12 additions and 1 deletions
|
|
@ -1071,10 +1071,21 @@ static boolean I_SDL_InitSound(boolean _use_sfx_prefix)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
// SDL 2.0.6 has a bug that makes it unusable.
|
||||||
|
if (SDL_COMPILEDVERSION == SDL_VERSIONNUM(2, 0, 6))
|
||||||
|
{
|
||||||
|
I_Error(
|
||||||
|
"I_SDL_InitSound: "
|
||||||
|
"You are trying to launch with SDL 2.0.6 which has a known bug "
|
||||||
|
"that makes the game crash. Please either downgrade to "
|
||||||
|
"SDL 2.0.5 or upgrade to 2.0.7. See the following bug for some "
|
||||||
|
"additional context:\n"
|
||||||
|
"<https://github.com/chocolate-doom/chocolate-doom/issues/945>");
|
||||||
|
}
|
||||||
|
|
||||||
use_sfx_prefix = _use_sfx_prefix;
|
use_sfx_prefix = _use_sfx_prefix;
|
||||||
|
|
||||||
// No sounds yet
|
// No sounds yet
|
||||||
|
|
||||||
for (i=0; i<NUM_CHANNELS; ++i)
|
for (i=0; i<NUM_CHANNELS; ++i)
|
||||||
{
|
{
|
||||||
channels_playing[i] = NULL;
|
channels_playing[i] = NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue