summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_sounds.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-09-12 22:02:30 +0300
committeraunsane <aunsane@gmail.com>2017-09-12 22:03:37 +0300
commit6f99f13cf590c323fd5bd5b4d6855e59f582fb0e (patch)
tree4b9a66758433be8273c7c20e06ab305901b4fdfb /plugins/MirLua/src/m_sounds.cpp
parent6611ef6791a897d23cb79ab7b56eb48d49452b80 (diff)
MirLua: massive refactoring
- m_msg_buttonbar moved to m_srrm - version bump
Diffstat (limited to 'plugins/MirLua/src/m_sounds.cpp')
-rw-r--r--plugins/MirLua/src/m_sounds.cpp12
1 files changed, 6 insertions, 6 deletions
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 }
};