Hide the reason for a plugin load failure unless developer is set.

This commit is contained in:
Jeff Teunissen 2002-02-22 11:17:20 +00:00
parent 9bd2e6ae91
commit ae2303c18d

View file

@ -68,7 +68,7 @@ hashtab_t *registered_plugins;
static const char *
plugin_get_key (void *pl, void *unused)
{
return ((plugin_list_t *)pl)->name;
return ((plugin_list_t *) pl)->name;
}
void
@ -106,7 +106,7 @@ PI_LoadPlugin (const char *type, const char *name)
void *dlhand = NULL;
plugin_t *plugin = NULL;
P_PluginInfo plugin_info = NULL;
plugin_list_t *pl;
plugin_list_t *pl;
if (!name)
return NULL;
@ -140,8 +140,8 @@ PI_LoadPlugin (const char *type, const char *name)
#if defined(HAVE_DLOPEN)
if (!(dlhand = dlopen (realname, RTLD_GLOBAL | RTLD_NOW))) {
// lib not found
Sys_Printf ("Could not load plugin \"%s\": %s\n", realname,
dlerror ());
Sys_Printf ("Could not load plugin \"%s\".\n", realname);
Sys_DPrintf ("Reason: \"%s\".\n", dlerror ());
return NULL;
}
#elif defined (_WIN32)