diff options
Diffstat (limited to 'plugins/MirLua/src')
-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; |