]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
don't start up CD audio if -nocdaudio is given on commandline - it was
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 24 Nov 2007 03:10:19 +0000 (03:10 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 24 Nov 2007 03:10:19 +0000 (03:10 +0000)
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

cd_shared.c

index a11b06cb4997ad9d090b657ba44f9b46f0897a35..03596e78bd5cbcf17b41ddf23c718a3d6fee2d9b 100644 (file)
@@ -426,6 +426,9 @@ int CDAudio_Init (void)
 
 int CDAudio_Startup (void)
 {
+       if (COM_CheckParm("-nocdaudio"))
+               return -1;
+
        CDAudio_SysStartup ();
 
        if (CDAudio_GetAudioDiskInfo())