- playmusic() now accepts bool loop as second param

This commit is contained in:
2022-10-07 18:17:11 +02:00
parent ee3c4325bc
commit a74ca5033c
3 changed files with 5 additions and 4 deletions

View File

@@ -640,7 +640,8 @@ extern "C" {
static int cpp_playmusic(lua_State *L) {
const char* str = luaL_checkstring(L, 1);
playmusic(str);
bool loop = lua_toboolean(L, 2);
playmusic(str, loop);
return 0;
}