mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
-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;
|
||||
Cache_Flush();//forget the old sounds.
|
||||
|
||||
if (COM_CheckParm("-nosound"))
|
||||
return;
|
||||
|
||||
S_StopAllSounds (true);
|
||||
|
||||
S_Shutdown();
|
||||
|
@ -428,10 +431,15 @@ void S_Init (void)
|
|||
Con_Printf("Sound is already initialized\n");
|
||||
return;
|
||||
}
|
||||
// Con_Printf("\nSound Initialization\n");
|
||||
Con_Printf("\nSound Initialization\n");
|
||||
|
||||
// if (COM_CheckParm("-nosound"))
|
||||
// return;
|
||||
if (COM_CheckParm("-nosound"))
|
||||
{
|
||||
Cvar_Register(&nosound, "Sound controls");
|
||||
Cvar_ForceSet(&nosound, "1");
|
||||
nosound.flags |= CVAR_NOSET;
|
||||
return;
|
||||
}
|
||||
|
||||
// if (COM_CheckParm("-simsound"))
|
||||
// fakedma = true;
|
||||
|
|
Loading…
Reference in a new issue