diff options
author | Andrey Nazarov <skuller@skuller.net> | 2010-05-09 17:06:27 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2010-05-09 17:06:27 +0000 |
commit | 633c832e43c42bce0a685a93acfc3937c84ed6bb (patch) | |
tree | 93f1da6ad3d2e66ec52a6b7548343dccb67facdf /source/sys_unix.c | |
parent | 1f3c71bf0acc8cf7d8893acfdc4ed0e24dde2e0e (diff) |
Added support for OpenAL sound output, activated by setting ‘s_enable’ cvar to 2.
Added ‘al_driver’ cvar for choosing what OpenAL library to link dynamically with.
Diffstat (limited to 'source/sys_unix.c')
-rw-r--r-- | source/sys_unix.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/source/sys_unix.c b/source/sys_unix.c index 96de99e..0368a77 100644 --- a/source/sys_unix.c +++ b/source/sys_unix.c @@ -800,11 +800,15 @@ void *Sys_LoadLibrary( const char *path, const char *sym, void **handle ) { return NULL; } - entry = dlsym( module, sym ); - if( !entry ) { - Com_DPrintf( "%s failed: %s\n", __func__, dlerror() ); - dlclose( module ); - return NULL; + if( sym ) { + entry = dlsym( module, sym ); + if( !entry ) { + Com_DPrintf( "%s failed: %s\n", __func__, dlerror() ); + dlclose( module ); + return NULL; + } + } else { + entry = NULL; } Com_DPrintf( "%s succeeded: %s\n", __func__, path ); |