mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 19:37:04 +00:00
[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:
parent
ce104f6281
commit
01c852fee8
6 changed files with 61 additions and 62 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue