-nosound readded (which registers and locks the nosound cvar, and prevents any sound devices being intiailsed or anything fun like that)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@544 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
f3c4aa6293
commit
73680ca9b7
1 changed files with 11 additions and 3 deletions
|
@ -272,6 +272,9 @@ void S_Restart_f (void)
|
||||||
extern qboolean snd_firsttime;
|
extern qboolean snd_firsttime;
|
||||||
Cache_Flush();//forget the old sounds.
|
Cache_Flush();//forget the old sounds.
|
||||||
|
|
||||||
|
if (COM_CheckParm("-nosound"))
|
||||||
|
return;
|
||||||
|
|
||||||
S_StopAllSounds (true);
|
S_StopAllSounds (true);
|
||||||
|
|
||||||
S_Shutdown();
|
S_Shutdown();
|
||||||
|
@ -428,10 +431,15 @@ void S_Init (void)
|
||||||
Con_Printf("Sound is already initialized\n");
|
Con_Printf("Sound is already initialized\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Con_Printf("\nSound Initialization\n");
|
Con_Printf("\nSound Initialization\n");
|
||||||
|
|
||||||
// if (COM_CheckParm("-nosound"))
|
if (COM_CheckParm("-nosound"))
|
||||||
// return;
|
{
|
||||||
|
Cvar_Register(&nosound, "Sound controls");
|
||||||
|
Cvar_ForceSet(&nosound, "1");
|
||||||
|
nosound.flags |= CVAR_NOSET;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// if (COM_CheckParm("-simsound"))
|
// if (COM_CheckParm("-simsound"))
|
||||||
// fakedma = true;
|
// fakedma = true;
|
||||||
|
|
Loading…
Reference in a new issue