Do not hide library loading errors behind "developer"
This commit is contained in:
parent
6120963b62
commit
739590e639
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue