Update l_mainmenu.cpp

This commit is contained in:
Ian Giestas Pauli 2017-01-27 22:20:57 -02:00 committed by GitHub
parent 6fdab7c4f0
commit bd32f607b3
1 changed files with 23 additions and 0 deletions

View File

@ -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)
{