mirror of https://github.com/minetest/minetest.git
Update l_mainmenu.cpp
This commit is contained in:
parent
6fdab7c4f0
commit
bd32f607b3
|
@ -982,6 +982,29 @@ int ModApiMainMenu::l_sound_stop(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
int ModApiMainMenu::l_sound_pause(lua_State *L)
|
||||
{
|
||||
GUIEngine* engine = getGuiEngine(L);
|
||||
|
||||
u32 handle = luaL_checkinteger(L, 1);
|
||||
engine->pauseSound(handle);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
int ModApiMainMenu::l_sound_resume(lua_State *L)
|
||||
{
|
||||
GUIEngine* engine = getGuiEngine(L);
|
||||
|
||||
u32 handle = luaL_checkinteger(L, 1);
|
||||
engine->resumeSound(handle);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
int ModApiMainMenu::l_download_file(lua_State *L)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue