[10950] Check for scripting lib that it build with exactly same mangos rev.

This prevent use outdated script DLL with hidden possible incompatibilities
in used from core inline functions  or defines.
This commit is contained in:
VladimirMangos 2011-01-02 19:39:23 +03:00
parent 0da3463758
commit 9ae7104251
10 changed files with 79 additions and 52 deletions

View file

@ -940,16 +940,19 @@ bool ChatHandler::HandleLoadScriptsCommand(char* args)
switch(sScriptMgr.LoadScriptLibrary(args))
{
case SCRIPT_LOAD_OK:
sWorld.SendWorldText(LANG_SCRIPTS_RELOADED_ANNOUNCE);
SendSysMessage(LANG_SCRIPTS_RELOADED_OK);
break;
case SCRIPT_LOAD_ERR_NOT_FOUND:
SendSysMessage(LANG_SCRIPTS_NOT_FOUND);
break;
case SCRIPT_LOAD_ERR_WRONG_API:
SendSysMessage(LANG_SCRIPTS_WRONG_API);
break;
case SCRIPT_LOAD_OK:
sWorld.SendWorldText(LANG_SCRIPTS_RELOADED_ANNOUNCE);
SendSysMessage(LANG_SCRIPTS_RELOADED_OK);
break;
case SCRIPT_LOAD_ERR_NOT_FOUND:
SendSysMessage(LANG_SCRIPTS_NOT_FOUND);
break;
case SCRIPT_LOAD_ERR_WRONG_API:
SendSysMessage(LANG_SCRIPTS_WRONG_API);
break;
case SCRIPT_LOAD_ERR_OUTDATED:
SendSysMessage(LANG_SCRIPTS_OUTDATED);
break;
}
return true;