From 6f99f13cf590c323fd5bd5b4d6855e59f582fb0e Mon Sep 17 00:00:00 2001 From: aunsane Date: Tue, 12 Sep 2017 22:02:30 +0300 Subject: MirLua: massive refactoring - m_msg_buttonbar moved to m_srrm - version bump --- plugins/MirLua/src/m_sounds.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/MirLua/src/m_sounds.cpp') diff --git a/plugins/MirLua/src/m_sounds.cpp b/plugins/MirLua/src/m_sounds.cpp index b7e86b4c91..7c044caaee 100644 --- a/plugins/MirLua/src/m_sounds.cpp +++ b/plugins/MirLua/src/m_sounds.cpp @@ -1,6 +1,6 @@ #include "stdafx.h" -static int sounds_AddSound(lua_State *L) +static int lua_AddSound(lua_State *L) { ptrA name(mir_utf8decodeA(luaL_checkstring(L, 1))); ptrW description(mir_utf8decodeW(luaL_checkstring(L, 2))); @@ -13,7 +13,7 @@ static int sounds_AddSound(lua_State *L) return 1; } -static int sounds_PlaySound(lua_State *L) +static int lua_PlaySound(lua_State *L) { const char *name = luaL_checkstring(L, 1); @@ -23,7 +23,7 @@ static int sounds_PlaySound(lua_State *L) return 1; } -static int sounds_PlayFile(lua_State *L) +static int lua_PlayFile(lua_State *L) { ptrW filePath(mir_utf8decodeW(luaL_checkstring(L, 1))); @@ -35,10 +35,10 @@ static int sounds_PlayFile(lua_State *L) static luaL_Reg soundApi[] = { - { "AddSound", sounds_AddSound }, - { "PlaySound", sounds_PlaySound }, + { "AddSound", lua_AddSound }, - { "PlayFile", sounds_PlayFile }, + { "PlaySound", lua_PlaySound }, + { "PlayFile", lua_PlayFile }, { NULL, NULL } }; -- cgit v1.2.3