mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-25 05:11:23 +00:00
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:
parent
17a4f34644
commit
7670da27cf
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue