From: havoc Date: Sat, 24 Nov 2007 03:10:19 +0000 (+0000) Subject: don't start up CD audio if -nocdaudio is given on commandline - it was X-Git-Tag: xonotic-v0.1.0preview~2770 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d8bb803f8410df06237ccf4409c77045098c2c7d;p=xonotic%2Fdarkplaces.git don't start up CD audio if -nocdaudio is given on commandline - it was already not being initialized, but it was being started git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7714 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cd_shared.c b/cd_shared.c index a11b06cb..03596e78 100644 --- a/cd_shared.c +++ b/cd_shared.c @@ -426,6 +426,9 @@ int CDAudio_Init (void) int CDAudio_Startup (void) { + if (COM_CheckParm("-nocdaudio")) + return -1; + CDAudio_SysStartup (); if (CDAudio_GetAudioDiskInfo())