Merge default into minor

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-07-28 19:14:54 -03:00
12 changed files with 116 additions and 0 deletions
+7
View File
@@ -95,6 +95,12 @@ int w_vibrate(lua_State *L)
return 0;
}
int w_hasBackgroundMusic(lua_State *L)
{
lua_pushboolean(L, instance()->hasBackgroundMusic());
return 1;
}
static const luaL_Reg functions[] =
{
{ "getOS", w_getOS },
@@ -104,6 +110,7 @@ static const luaL_Reg functions[] =
{ "getPowerInfo", w_getPowerInfo },
{ "openURL", w_openURL },
{ "vibrate", w_vibrate },
{ "hasBackgroundMusic", w_hasBackgroundMusic },
{ 0, 0 }
};