Now just pass the filename (not path) when loading the plugin. Currently

assumes path of ./ but taniwha was going to add a cvar which can be used
if va("./%s", filename) doesn't exist..
This commit is contained in:
Joseph Carter 2000-02-14 09:02:16 +00:00
parent 17a4f34644
commit 7670da27cf
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ int plugin_load(char *filename)
void *h;
void *(*gpi) (void);
if ((h = dlopen(filename, RTLD_LAZY))) {
if ((h = dlopen(va("./%s", filename), RTLD_LAZY))) {
if ((gpi = dlsym(h, "get_input_plugin_info"))) {
input_pi *p;

View file

@ -492,7 +492,7 @@ VID_Init(unsigned char *palette)
int w, h, d;
int err;
plugin_load("./in_svgalib.so");
plugin_load("in_svgalib.so");
IN->Init();
/* Sound gets initialized here */
S_Init();