diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-07-18 19:43:12 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-07-18 19:43:12 +0000 |
commit | 059a7ea5928d49d81ed1d884e59c60f152983539 (patch) | |
tree | 8d4065bfa11f5cba5714d131842108c6a1286922 /plugins/MirLua/src/main.cpp | |
parent | 952154728cfc9a390f9f7b2e3326ea32d76e0003 (diff) |
MirLua:
- removed OnScriptLoaded/OnScriptUnload
- removed second script path
- module loading and options refactoring
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@14587 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/main.cpp')
-rw-r--r-- | plugins/MirLua/src/main.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/MirLua/src/main.cpp b/plugins/MirLua/src/main.cpp index b90eeb97b2..2ec8920988 100644 --- a/plugins/MirLua/src/main.cpp +++ b/plugins/MirLua/src/main.cpp @@ -5,12 +5,11 @@ int hScriptsLangpack; HINSTANCE g_hInstance;
-HANDLE g_hCommonFolderPath;
-HANDLE g_hCustomFolderPath;
+CMLua *g_mLua;
-HANDLE hNetlib = NULL;
+HANDLE g_hCommonScriptFolder;
-CMLua *g_mLua;
+HANDLE hNetlib = NULL;
PLUGININFOEX pluginInfo =
{
@@ -42,10 +41,10 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) int OnModulesLoaded(WPARAM, LPARAM)
{
- g_hCommonFolderPath = FoldersRegisterCustomPathT(MODULE, Translate("Common scripts folder"), COMMON_SCRIPTS_PATHT);
- g_hCustomFolderPath = FoldersRegisterCustomPathT(MODULE, Translate("Custom scripts folder"), CUSTOM_SCRIPTS_PATHT);
+ g_hCommonScriptFolder = FoldersRegisterCustomPathT(MODULE, Translate("Common scripts folder"), COMMON_SCRIPTS_PATHT);
g_mLua = new CMLua();
+ g_mLua->Load();
HookEvent(ME_OPT_INITIALISE, CLuaOptions::OnOptionsInit);
|