fixed invalid pathnames passed to CacheAndLoadModules causing auto load not to work
This commit is contained in:
parent
b363b16d61
commit
5ffb38b5bc
|
@ -593,7 +593,6 @@ void CPluginMngr::CALMFromFile(const char *file)
|
||||||
// Find now folder
|
// Find now folder
|
||||||
char pluginName[256];
|
char pluginName[256];
|
||||||
char line[256];
|
char line[256];
|
||||||
const char *pluginsDir = get_localinfo("amxx_pluginsdir", "addons/amxmodx/plugins");
|
|
||||||
String rline;
|
String rline;
|
||||||
|
|
||||||
while (!feof(fp))
|
while (!feof(fp))
|
||||||
|
@ -610,7 +609,7 @@ void CPluginMngr::CALMFromFile(const char *file)
|
||||||
if (!isalnum(*pluginName))
|
if (!isalnum(*pluginName))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
build_pathname_r(filename, sizeof(filename)-1, "%s/%s", pluginsDir, pluginName);
|
build_pathname_r(filename, sizeof(filename)-1, "%s/%s", get_localinfo("amxx_pluginsdir", "addons/amxmodx/plugins"), pluginName);
|
||||||
|
|
||||||
CacheAndLoadModules(filename);
|
CacheAndLoadModules(filename);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user