Core/Scripts: log ScriptNames assigned in database without core script

(cherry picked from commit cc4ebdbe05)
This commit is contained in:
joschiwald
2014-12-05 23:55:06 +01:00
parent 2e757f8198
commit 5b93a6b392
4 changed files with 86 additions and 47 deletions

View File

@@ -873,6 +873,15 @@ class GroupScript : public ScriptObject
// Placed here due to ScriptRegistry::AddScript dependency.
#define sScriptMgr ScriptMgr::instance()
// namespace
// {
typedef std::vector<ScriptObject*> UnusedScriptContainer;
typedef std::list<std::string> UnusedScriptNamesContainer;
extern UnusedScriptContainer UnusedScripts;
extern UnusedScriptNamesContainer UnusedScriptNames;
// }
// Manages registration, loading, and execution of scripts.
class ScriptMgr
{
@@ -901,6 +910,7 @@ class ScriptMgr
public: /* Unloading */
void Unload();
void UnloadUnusedScripts();
public: /* SpellScriptLoader */