mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 12:41:21 +00:00
Do not hide library loading errors behind "developer"
This commit is contained in:
parent
6120963b62
commit
739590e639
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue