diff options
Diffstat (limited to 'plugins/MirLua/src/mlua_script.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua_script.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/MirLua/src/mlua_script.cpp b/plugins/MirLua/src/mlua_script.cpp index 3023d8c71e..e1adc52ea3 100644 --- a/plugins/MirLua/src/mlua_script.cpp +++ b/plugins/MirLua/src/mlua_script.cpp @@ -18,7 +18,8 @@ CMLuaScript::CMLuaScript(lua_State *L, const TCHAR *path) CMLuaScript::~CMLuaScript()
{
- mir_free(this->moduleName);
+ mir_free(moduleName);
+ mir_free(filePath);
}
const char* CMLuaScript::GetModuleName() const
@@ -49,6 +50,13 @@ bool CMLuaScript::Load() return false;
}
+ if (false) // under construction
+ {
+ // setting other enviroment to script
+ lua_newtable(L);
+ lua_setupvalue(L, -2, 1);
+ }
+
if (luaM_pcall(L, 0, 1))
return false;
|