From: havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Fri, 3 Sep 2004 06:26:27 +0000 (+0000)
Subject: added -novorbis commandline option to allow disabling ogg vorbis support even if... 
X-Git-Tag: xonotic-v0.1.0preview~5656
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=064015cc969f587f2ea1309f465c3477e7bef1a7;p=xonotic%2Fdarkplaces.git

added -novorbis commandline option to allow disabling ogg vorbis support even if the library is present


git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4425 d7cf8633-e32d-0410-b094-e92efae38249
---

diff --git a/snd_ogg.c b/snd_ogg.c
index ceab9efb..989903fe 100644
--- a/snd_ogg.c
+++ b/snd_ogg.c
@@ -298,6 +298,9 @@ qboolean OGG_OpenLibrary (void)
 	if (vf_dll)
 		return true;
 
+	if (COM_CheckParm("-novorbis"))
+		return false;
+
 #ifdef WIN32
 	dllname = "vorbisfile.dll";
 #else