From 031b81f8764de5e566490248dbc4bb466c0b03e9 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 10 Jun 2015 21:00:17 +0000 Subject: MirLua: - added OnModulesLoaded handler - added OnPreShutdown handler - renamed existing modules - changed modules loading - chaged examples git-svn-id: http://svn.miranda-ng.org/main/trunk@14107 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/MirLua/src/mlua.cpp') diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp index b6d3895940..c600ad058e 100644 --- a/plugins/MirLua/src/mlua.cpp +++ b/plugins/MirLua/src/mlua.cpp @@ -13,10 +13,10 @@ CMLua::CMLua() lua_pop(L, 1); luaL_newlib(L, coreLib); - lua_setglobal(L, "M"); + lua_setglobal(L, "m"); - Preload(M_ICONSLIBNAME, luaopen_m_icons); - Preload(M_MENUSLIBNAME, luaopen_m_menus); + Preload(MLUA_ICOLIB, luaopen_m_icolib); + Preload(MLUA_GENMENU, luaopen_m_genmenu); } CMLua::~CMLua() @@ -37,7 +37,7 @@ void CMLua::AddPath(const char *path) void CMLua::Load(const char *path) { - if (luaL_dofile(L, path)); + if (luaL_dofile(L, path)) printf("%s\n", lua_tostring(L, -1)); } -- cgit v1.2.3