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_win.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_win.c')
-rw-r--r-- | source/sys_win.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source/sys_win.c b/source/sys_win.c index da53c03..8a36bb5 100644 --- a/source/sys_win.c +++ b/source/sys_win.c @@ -767,12 +767,16 @@ void *Sys_LoadLibrary( const char *path, const char *sym, void **handle ) { return NULL; } - entry = GetProcAddress( module, sym ); - if( !entry ) { - Com_DPrintf( "%s failed: GetProcAddress returned %lu on %s\n", - __func__, GetLastError(), path ); - FreeLibrary( module ); - return NULL; + if( sym ) { + entry = GetProcAddress( module, sym ); + if( !entry ) { + Com_DPrintf( "%s failed: GetProcAddress returned %lu on %s\n", + __func__, GetLastError(), path ); + FreeLibrary( module ); + return NULL; + } + } else { + entry = NULL; } *handle = module; |