From 34c0b8e8dba1e82842f61eb4ccc2b9ab2696695a Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 23 Jun 2015 09:26:59 +0000 Subject: MirLua: console should not terminate miranda process git-svn-id: http://svn.miranda-ng.org/main/trunk@14347 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua/src/mlua.cpp') 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); -- cgit v1.2.3