diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-06-23 13:01:49 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-06-23 13:01:49 +0000 |
commit | 50b6a5ca2c5652fdf4e5fab69d9918c0f633cfb5 (patch) | |
tree | 47d14db48369b7aac927ab77189ec842f4ef9373 /plugins/MirLua/src/mlua_script.cpp | |
parent | 1406bb2d649a561151ea9c44f2a3da54704d3ff7 (diff) |
MirLua: reworked m_core and CMLuaScript
git-svn-id: http://svn.miranda-ng.org/main/trunk@17023 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_script.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua_script.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirLua/src/mlua_script.cpp b/plugins/MirLua/src/mlua_script.cpp index d36f93b7a8..1d4a2938b0 100644 --- a/plugins/MirLua/src/mlua_script.cpp +++ b/plugins/MirLua/src/mlua_script.cpp @@ -2,8 +2,8 @@ #define SCRIPT "Script"
-CMLuaScript::CMLuaScript(lua_State *L, const TCHAR *path)
- : L(L), status(None), unloadRef(LUA_NOREF)
+CMLuaScript::CMLuaScript(const TCHAR *path)
+ : status(None), unloadRef(LUA_NOREF)
{
mir_tstrcpy(filePath, path);
@@ -91,7 +91,7 @@ const CMLuaScript::Status CMLuaScript::GetStatus() const return status;
}
-bool CMLuaScript::Load()
+bool CMLuaScript::Load(lua_State *L)
{
status = Failed;
@@ -154,7 +154,7 @@ bool CMLuaScript::Load() return true;
}
-void CMLuaScript::Unload()
+void CMLuaScript::Unload(lua_State *L)
{
if (status == Loaded)
{
|