mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-27 06:32:27 +00:00
Make Sys_DLL_Load() on *nix non verbose on errors
Just like the windows port.
This commit is contained in:
parent
be37221024
commit
b242041319
1 changed files with 1 additions and 5 deletions
|
@ -265,11 +265,7 @@ TODO: OSX - use the native API instead? NSModule
|
||||||
=================
|
=================
|
||||||
*/
|
*/
|
||||||
uintptr_t Sys_DLL_Load( const char *path ) {
|
uintptr_t Sys_DLL_Load( const char *path ) {
|
||||||
void *handle = dlopen( path, RTLD_NOW );
|
return (uintptr_t)dlopen( path, RTLD_NOW );
|
||||||
if ( !handle ) {
|
|
||||||
Sys_Printf( "dlopen '%s' failed: %s\n", path, dlerror() );
|
|
||||||
}
|
|
||||||
return (uintptr_t)handle;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue