summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/main.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-07-06 08:03:40 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-07-06 08:03:40 +0000
commitdc8040ee04ef2819c99d55dc74e9fe56d4ba4d1e (patch)
tree7ffe8d9e4c6e395855ab43fdc14d739cf9b3e9ec /plugins/MirLua/src/main.cpp
parentc59e17d57d3e2187c4d6412a128cfa8e09be287d (diff)
MirLua: !api break
- scripts will be load after ME_SYSTEM_MODULESLOADED event - removed event functions OnModulesLoaded, OnPreShutdown from m_core - removed OnMsgToolBarLoaded from m_msg_buttonsbar - removed OnTopToolBarLoaded from m_toptoolbar - fixed examples git-svn-id: http://svn.miranda-ng.org/main/trunk@14495 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/main.cpp')
-rw-r--r--plugins/MirLua/src/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MirLua/src/main.cpp b/plugins/MirLua/src/main.cpp
index e9bf5fff64..9ac95a6579 100644
--- a/plugins/MirLua/src/main.cpp
+++ b/plugins/MirLua/src/main.cpp
@@ -42,6 +42,11 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
int OnModulesLoaded(WPARAM, LPARAM)
{
+ g_hCommonFolderPath = FoldersRegisterCustomPathT("MirLua", Translate("Common scripts folder"), COMMON_SCRIPTS_PATHT);
+ g_hCustomFolderPath = FoldersRegisterCustomPathT("MirLua", Translate("Custom scripts folder"), CUSTOM_SCRIPTS_PATHT);
+
+ g_mLua = new CMLua();
+
HookEvent(ME_OPT_INITIALISE, CLuaOptions::OnOptionsInit);
return 0;
@@ -53,9 +58,6 @@ extern "C" int __declspec(dllexport) Load(void)
HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
- g_hCommonFolderPath = FoldersRegisterCustomPathT("MirLua", Translate("Common scripts folder"), COMMON_SCRIPTS_PATHT);
- g_hCustomFolderPath = FoldersRegisterCustomPathT("MirLua", Translate("Custom scripts folder"), CUSTOM_SCRIPTS_PATHT);
-
NETLIBUSER nlu = { 0 };
nlu.cbSize = sizeof(nlu);
nlu.flags = NUF_OUTGOING | NUF_INCOMING | NUF_HTTPCONNS | NUF_UNICODE;
@@ -63,8 +65,6 @@ extern "C" int __declspec(dllexport) Load(void)
nlu.szSettingsModule = MODULE;
hNetlib = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu);
- g_mLua = new CMLua();
-
return 0;
}