diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-16 16:11:54 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-16 16:11:54 +0000 |
commit | bb6a5d218c33b602617afdf79b9f21f936897d08 (patch) | |
tree | 21881c68545c4e9189cfb7aa566fc4e5440d5d25 /plugins/MirLua/src/main.cpp | |
parent | 35205b9114784ff8f9f40b04f9ec8e14a250e467 (diff) |
MirLua: added ability to disable scripts
git-svn-id: http://svn.miranda-ng.org/main/trunk@14209 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/main.cpp')
-rw-r--r-- | plugins/MirLua/src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/MirLua/src/main.cpp b/plugins/MirLua/src/main.cpp index ce1fa50de9..35d572a4c7 100644 --- a/plugins/MirLua/src/main.cpp +++ b/plugins/MirLua/src/main.cpp @@ -56,7 +56,8 @@ void LoadScripts(const TCHAR *scriptDir) {
mir_sntprintf(fullPath, _T("%s\\%s"), scriptDir, fd.cFileName);
PathToRelativeT(fullPath, path);
- mLua->Load(T2Utf(path));
+ if (db_get_b(NULL, MODULE, _T2A(fd.cFileName), 1))
+ mLua->Load(T2Utf(path));
}
} while (FindNextFile(hFind, &fd));
FindClose(hFind);
|