]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_ogg.c
added COMMANDLINEOPTION comments for every commandline option, these will be listed...
[xonotic/darkplaces.git] / snd_ogg.c
index 17fc7dff64105615a3ec4f65c20a6940d866d5a1..d6f19207d6e4d74f81601ce8839b550e664cf0c5 100644 (file)
--- a/snd_ogg.c
+++ b/snd_ogg.c
@@ -298,6 +298,10 @@ qboolean OGG_OpenLibrary (void)
        if (vf_dll)
                return true;
 
+// COMMANDLINEOPTION: -novorbis disables ogg vorbis sound support
+       if (COM_CheckParm("-novorbis"))
+               return false;
+
 #ifdef WIN32
        dllname = "vorbisfile.dll";
 #else
@@ -515,7 +519,7 @@ qboolean OGG_LoadVorbisFile (const char *filename, sfx_t *s)
                return false;
 
        Mem_FreePool (&s->mempool);
-       s->mempool = Mem_AllocPool (s->name);
+       s->mempool = Mem_AllocPool (s->name, 0, NULL);
 
        // Load the file
        data = FS_LoadFile (filename, s->mempool, false);