diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-02-15 17:09:42 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-02-15 17:09:42 +0000 |
commit | 06c13fcc7c6c9b7b8448e550568c5993dbd96628 (patch) | |
tree | 8ba39163ab86765cfeed6b8d73d528ee6dd9bd33 /plugins/MirLua/src/mlua.cpp | |
parent | a7967e3364a0b5528433de65cfbb743c57625e72 (diff) |
MirLua: returned ability to reload single script
git-svn-id: http://svn.miranda-ng.org/main/trunk@16282 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua.cpp | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp index af6404573c..18f2cf5315 100644 --- a/plugins/MirLua/src/mlua.cpp +++ b/plugins/MirLua/src/mlua.cpp @@ -10,8 +10,6 @@ static int CompareScripts(const CMLuaScript* p1, const CMLuaScript* p2) CMLua::CMLua() : L(NULL), Scripts(10, CompareScripts)
{
- MUUID muidLast = MIID_LAST;
- hLangpack = GetPluginLangId(muidLast, 0);
}
CMLua::~CMLua()
@@ -19,11 +17,6 @@ CMLua::~CMLua() Unload();
}
-const int CMLua::GetHLangpack() const
-{
- return hLangpack;
-}
-
void CMLua::SetPaths()
{
TCHAR path[MAX_PATH];
@@ -74,16 +67,17 @@ void CMLua::Unload() delete script;
}
- ::KillModuleScheduleTasks();
- ::KillModuleMBButtons();
- ::KillModuleTTBButton();
+ KillModuleScheduleTasks();
+ KillModuleMBButtons();
+ KillModuleTTBButton();
+
+ KillModuleIcons(hLangpack);
+ KillModuleSounds(hLangpack);
+ KillModuleMenus(hLangpack);
+ KillModuleHotkeys(hLangpack);
- ::KillModuleIcons(hLangpack);
- ::KillModuleSounds(hLangpack);
- ::KillModuleMenus(hLangpack);
- ::KillModuleHotkeys(hLangpack);
- ::KillObjectEventHooks(L);
- ::KillObjectServices(L);
+ KillObjectEventHooks(L);
+ KillObjectServices(L);
lua_close(L);
}
|