summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/mlua.cpp')
-rw-r--r--plugins/MirLua/src/mlua.cpp26
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);
}