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.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp
index c73d259cf9..7f5d8027c0 100644
--- a/plugins/MirLua/src/mlua.cpp
+++ b/plugins/MirLua/src/mlua.cpp
@@ -10,7 +10,7 @@ CMLua::CMLua() : L(NULL)
CMLua::~CMLua()
{
Unload();
-
+
delete console;
}
@@ -29,12 +29,15 @@ void CMLua::Load()
MUUID muidLast = MIID_LAST;
hScriptsLangpack = GetPluginLangId(muidLast, 0);
+ hLogger = mir_createLog(MODULE, _T("MirLua log"), VARST(_T("%miranda_logpath%\\MirLua.txt")), 0);
+
CLuaModuleLoader::Load(L);
- CLuaScriptLoader::Load(L);
+ CLuaScriptLoader::Load(L, hLogger);
}
void CMLua::Unload()
{
+ mir_closeLog(hLogger);
if (L)
lua_close(L);
KillModuleMenus(hScriptsLangpack);