From 22ecdc28ebf053a6b335b802949f4f774af97d26 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 10 Jun 2015 13:43:07 +0000 Subject: MirLua: - removed unwanted paths to script searching - fixed crash on event hook/service call - code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@14103 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/MirLua/src/main.cpp') diff --git a/plugins/MirLua/src/main.cpp b/plugins/MirLua/src/main.cpp index 59ba4fda87..36c64e2572 100644 --- a/plugins/MirLua/src/main.cpp +++ b/plugins/MirLua/src/main.cpp @@ -41,6 +41,8 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) void LoadScripts(const TCHAR *scriptDir) { + mLua->AddPath(ptrA(mir_utf8encodeT(scriptDir))); + TCHAR searchMask[MAX_PATH]; mir_sntprintf(searchMask, _T("%s\\%s"), scriptDir, _T("*.lua")); -- cgit v1.2.3