Eluna remove crash possibility of using ReloadEluna global function on returning hooks, restrict the use of the reload command

This commit is contained in:
Rochet2
2014-06-10 23:31:57 +03:00
committed by Foereaper
parent 37a0161f29
commit 45c5c876dd
5 changed files with 30 additions and 14 deletions

View File

@@ -353,6 +353,7 @@ public:
typedef std::set<std::string> ScriptPaths;
static Eluna* GEluna;
static bool reload;
lua_State* L;
int userdata_table;
@@ -380,6 +381,8 @@ public:
static ScriptPaths scripts;
static void Initialize();
static void Uninitialize();
// Use Eluna::reload = true; instead.
// This will be called on next update
static void ReloadEluna();
void static GetScripts(std::string path, ScriptPaths& scripts);