From 059a7ea5928d49d81ed1d884e59c60f152983539 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 18 Jul 2015 19:43:12 +0000 Subject: MirLua: - removed OnScriptLoaded/OnScriptUnload - removed second script path - module loading and options refactoring - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@14587 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_script.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 plugins/MirLua/src/mlua_script.h (limited to 'plugins/MirLua/src/mlua_script.h') diff --git a/plugins/MirLua/src/mlua_script.h b/plugins/MirLua/src/mlua_script.h new file mode 100644 index 0000000000..0b299112b7 --- /dev/null +++ b/plugins/MirLua/src/mlua_script.h @@ -0,0 +1,30 @@ +#ifndef _LUA_SCRIPT_H_ +#define _LUA_SCRIPT_H_ + +class CMLuaScript +{ +private: + lua_State *L; + + char* moduleName; + TCHAR* fileName; + TCHAR filePath[MAX_PATH]; + bool isLoaded; + int group; + int unloadRef; + +public: + CMLuaScript(lua_State *L, const TCHAR* path, int iGroup = 0); + ~CMLuaScript(); + + const char* GetModuleName() const; + + const TCHAR* GetFilePath() const; + const TCHAR* GetFileName() const; + const int GetGroup() const; + + bool Load(); + void Unload(); +}; + +#endif //_LUA_SCRIPT_H_ -- cgit v1.2.3