summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/script.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-28 14:09:32 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-28 14:09:32 +0300
commite69e24524436a1ce013bf461f87924f57ed075fb (patch)
treeb01caa296efc073512cf1f092eac1a15bc851250 /plugins/MirLua/src/script.cpp
parente06a3bd4b50fd001f4d0d49c10a0c4b988c563a0 (diff)
core changes:
- added methods CMPluginBase::Load & CMPluginBase::Unload - duplicated data removed from BASIC_PLUGIN_INFO and replaced with data from CMPluginBase; - code cleaning
Diffstat (limited to 'plugins/MirLua/src/script.cpp')
-rw-r--r--plugins/MirLua/src/script.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/MirLua/src/script.cpp b/plugins/MirLua/src/script.cpp
index 0b6b148536..50e061b59c 100644
--- a/plugins/MirLua/src/script.cpp
+++ b/plugins/MirLua/src/script.cpp
@@ -62,7 +62,7 @@ CMLuaScript::Status CMLuaScript::GetStatus() const
return status;
}
-bool CMLuaScript::Load()
+int CMLuaScript::Load()
{
status = Failed;
@@ -114,7 +114,7 @@ bool CMLuaScript::Load()
return true;
}
-void CMLuaScript::Unload()
+int CMLuaScript::Unload()
{
if (status == Loaded) {
lua_rawgeti(L, LUA_REGISTRYINDEX, unloadRef);
@@ -129,6 +129,7 @@ void CMLuaScript::Unload()
lua_pushnil(L);
lua_setfield(L, -2, m_szModuleName);
lua_pop(L, 1);
+ return 0;
}
bool CMLuaScript::Reload()