MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / StopMusic

Method StopMusic

LuaSTGPlus/LuaWrapper.cpp:1580–1588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1578 return 0;
1579 }
1580 static int StopMusic(lua_State* L)LNOEXCEPT
1581 {
1582 const char* s = luaL_checkstring(L, 1);
1583 ResMusic* p = LRES.FindMusic(s);
1584 if (!p)
1585 return luaL_error(L, "music '%s' not found.", s);
1586 p->Stop();
1587 return 0;
1588 }
1589 static int PauseMusic(lua_State* L)LNOEXCEPT
1590 {
1591 const char* s = luaL_checkstring(L, 1);

Callers

nothing calls this directly

Calls 2

FindMusicMethod · 0.80
StopMethod · 0.45

Tested by

no test coverage detected