Core/Scripts: log ScriptNames assigned in database without core script
(cherry picked from commit cc4ebdbe059358cac997e783b2fddc6cff4c831b)
This commit is contained in:
1 parent
2e757f8198
commit
5b93a6b392
4 files changed
+86
-47
No files matched your search
@@ -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 */
|
||||
|
||||
|
||||
Reference in new issue
Block a user