diff options
author | aunsane <aunsane@gmail.com> | 2018-08-12 14:08:22 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-08-12 14:08:22 +0300 |
commit | 9da2f5a6c86f53c7c25fa0b75194f325f777bebb (patch) | |
tree | f653b78b6dc2f2b654fee13e6da4d69685b1e695 | |
parent | 8956a4b69fdf9bfec0feb17b0911d549f1cdd9ee (diff) |
MirLua: script loading moved to OnModulesLoaded to fix various glitches
-rw-r--r-- | plugins/MirLua/src/plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/MirLua/src/plugin.cpp b/plugins/MirLua/src/plugin.cpp index ceefe7d7b0..59756f1d26 100644 --- a/plugins/MirLua/src/plugin.cpp +++ b/plugins/MirLua/src/plugin.cpp @@ -62,7 +62,6 @@ void CMPlugin::LoadLua() CMLuaFunctionLoader::Load(L); CMLuaModuleLoader::Load(L); CMLuaVariablesLoader::Load(L); - LoadLuaScripts(); } void CMPlugin::UnloadLua() @@ -115,6 +114,8 @@ int CMPlugin::OnModulesLoaded(WPARAM, LPARAM) g_hCLibsFolder = FoldersRegisterCustomPathT(MODULENAME, "CLibsFolder", MIRLUA_PATHT, TranslateT("C libs folder")); g_hScriptsFolder = FoldersRegisterCustomPathT(MODULENAME, "ScriptsFolder", MIRLUA_PATHT, TranslateT("Scripts folder")); + LoadLuaScripts(); + HookPluginEvent(ME_OPT_INITIALISE, &CMPlugin::OnOptionsInit); return 0; |