diff options
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);
|