summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-23 09:26:59 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-23 09:26:59 +0000
commit34c0b8e8dba1e82842f61eb4ccc2b9ab2696695a (patch)
tree8fbfdaa23adc6af73b04b2bdd5103b568a05a09a /plugins/MirLua/src/mlua.cpp
parent4a73d25004e811c187115dc95236553c704fe76b (diff)
MirLua: console should not terminate miranda process
git-svn-id: http://svn.miranda-ng.org/main/trunk@14347 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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);