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

View file

@ -818,7 +818,7 @@ Sys_LoadLibrary(const char *path, const char *sym, void **handle)
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);
return NULL;
}
@ -829,7 +829,7 @@ Sys_LoadLibrary(const char *path, const char *sym, void **handle)
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);
FreeLibrary(module);
return NULL;