From 06c13fcc7c6c9b7b8448e550568c5993dbd96628 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 15 Feb 2016 17:09:42 +0000 Subject: MirLua: returned ability to reload single script git-svn-id: http://svn.miranda-ng.org/main/trunk@16282 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_script.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'plugins/MirLua/src/mlua_script.h') diff --git a/plugins/MirLua/src/mlua_script.h b/plugins/MirLua/src/mlua_script.h index 76731395fb..742fc9ac75 100644 --- a/plugins/MirLua/src/mlua_script.h +++ b/plugins/MirLua/src/mlua_script.h @@ -4,6 +4,8 @@ class CMLuaScript { public: + lua_State *L; + enum Status { None, @@ -12,18 +14,21 @@ public: }; private: - lua_State *L; - + int id; char *moduleName; TCHAR *fileName; TCHAR filePath[MAX_PATH]; Status status; - int unloadRef; public: CMLuaScript(lua_State *L, const TCHAR *path); ~CMLuaScript(); + //const int GetId() const; + + static CMLuaScript* GetScriptFromEnviroment(lua_State *L, int n = 1); + static int GetScriptIdFromEnviroment(lua_State *L, int n = 1); + const char* GetModuleName() const; const TCHAR* GetFilePath() const; -- cgit v1.2.3