From 6d72639c7de652d08a2c9154b4eefc96e3a49b6f Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 6 Dec 2015 20:06:30 +0000 Subject: MirLua: added sound module git-svn-id: http://svn.miranda-ng.org/main/trunk@15823 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_icolib.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua/src/m_icolib.cpp') diff --git a/plugins/MirLua/src/m_icolib.cpp b/plugins/MirLua/src/m_icolib.cpp index 30146cd503..5b2a5b23a3 100644 --- a/plugins/MirLua/src/m_icolib.cpp +++ b/plugins/MirLua/src/m_icolib.cpp @@ -2,7 +2,7 @@ static int lua_AddIcon(lua_State *L) { - const char* name = luaL_checkstring(L, 1); + const char *name = luaL_checkstring(L, 1); ptrT description(mir_utf8decodeT(luaL_checkstring(L, 2))); ptrT section(mir_utf8decodeT(luaL_optstring(L, 3, MODULE))); @@ -25,7 +25,7 @@ static int lua_AddIcon(lua_State *L) static int lua_GetIcon(lua_State *L) { - const char* name = luaL_checkstring(L, 1); + const char *name = luaL_checkstring(L, 1); HANDLE res = ::IcoLib_GetIconHandle(name); lua_pushlightuserdata(L, res); @@ -52,8 +52,11 @@ static int lua_RemoveIcon(lua_State *L) static luaL_Reg icolibApi[] = { { "AddIcon", lua_AddIcon }, + { "Add", lua_AddIcon }, { "GetIcon", lua_GetIcon }, + { "Get", lua_GetIcon }, { "RemoveIcon", lua_RemoveIcon }, + { "Remove", lua_RemoveIcon }, { NULL, NULL } }; -- cgit v1.2.3