]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_ogg.c
cmd: Use a bitshift and subtract to calculate CF_MAXFLAGSVAL
[xonotic/darkplaces.git] / snd_ogg.c
index 540966d4c9fd716baea0a2f4123f322c12df4502..09d20c8e307c0e2d9c9c93397c5cf8577957dff4 100644 (file)
--- a/snd_ogg.c
+++ b/snd_ogg.c
@@ -306,7 +306,7 @@ qbool OGG_OpenLibrary (void)
        // Load the DLLs
        // We need to load both by hand because some OSes seem to not load
        // the vorbis DLL automatically when loading the VorbisFile DLL
-       return Sys_LoadLibrary (dllnames_vo, &vo_dll, vorbisfuncs) && Sys_LoadLibrary (dllnames_vf, &vf_dll, vorbisfilefuncs);
+       return Sys_LoadDependency (dllnames_vo, &vo_dll, vorbisfuncs) && Sys_LoadDependency (dllnames_vf, &vf_dll, vorbisfilefuncs);
 }
 
 
@@ -319,8 +319,8 @@ Unload the VorbisFile DLL
 */
 void OGG_CloseLibrary (void)
 {
-       Sys_UnloadLibrary (&vf_dll);
-       Sys_UnloadLibrary (&vo_dll);
+       Sys_FreeLibrary (&vf_dll);
+       Sys_FreeLibrary (&vo_dll);
 }
 
 #endif