Do not hide library loading errors behind "developer"

This commit is contained in:
Yamagi Burmeister 2012-08-03 14:35:31 +02:00
parent 6120963b62
commit 739590e639
2 changed files with 4 additions and 4 deletions

View File

@ -513,7 +513,7 @@ Sys_LoadLibrary(const char *path, const char *sym, void **handle)
if (!module) if (!module)
{ {
Com_DPrintf("%s failed: %s\n", __func__, dlerror()); Com_Printf("%s failed: %s\n", __func__, dlerror());
return NULL; return NULL;
} }
@ -523,7 +523,7 @@ Sys_LoadLibrary(const char *path, const char *sym, void **handle)
if (!entry) if (!entry)
{ {
Com_DPrintf("%s failed: %s\n", __func__, dlerror()); Com_Printf("%s failed: %s\n", __func__, dlerror());
dlclose(module); dlclose(module);
return NULL; return NULL;
} }

View File

@ -818,7 +818,7 @@ Sys_LoadLibrary(const char *path, const char *sym, void **handle)
if (!module) if (!module)
{ {
Com_DPrintf("%s failed: LoadLibrary returned %lu on %s\n", Com_Printf("%s failed: LoadLibrary returned %lu on %s\n",
__func__, GetLastError(), path); __func__, GetLastError(), path);
return NULL; return NULL;
} }
@ -829,7 +829,7 @@ Sys_LoadLibrary(const char *path, const char *sym, void **handle)
if (!entry) if (!entry)
{ {
Com_DPrintf("%s failed: GetProcAddress returned %lu on %s\n", Com_Printf("%s failed: GetProcAddress returned %lu on %s\n",
__func__, GetLastError(), path); __func__, GetLastError(), path);
FreeLibrary(module); FreeLibrary(module);
return NULL; return NULL;