[8888] Use ACE for access to script lib

* This allow have more portable code and resolve some related portability problems.
* Also make default script library name lowcase at Windows in same way as used for Unix case.

Thanks to XTZGZoReX for Unix side testing :)
This commit is contained in:
VladimirMangos 2009-11-29 16:04:38 +03:00
parent ce104f6281
commit 01c852fee8
6 changed files with 61 additions and 62 deletions

View file

@ -43,7 +43,7 @@ bool LoadScriptingModule(char const* libName)
ScriptsSet testScript=new _ScriptSet;
std::string name = strlen(libName) ? libName : MANGOS_SCRIPT_NAME;
name += MANGOS_SCRIPT_EXT;
name = MANGOS_SCRIPT_PREFIX + name + MANGOS_SCRIPT_SUFFIX;
testScript->hScriptsLib=MANGOS_LOAD_LIBRARY(name.c_str());