MCPcopy Create free account
hub / github.com/WilliamLCobb/iNDS / StopAllLuaScripts

Function StopAllLuaScripts

desmume/src/lua-engine.cpp:6332–6348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6330}
6331
6332void StopAllLuaScripts()
6333{
6334 if(!g_stopAllScriptsEnabled)
6335 return;
6336
6337 std::map<int, LuaContextInfo*>::const_iterator iter = luaContextInfo.begin();
6338 std::map<int, LuaContextInfo*>::const_iterator end = luaContextInfo.end();
6339 while(iter != end)
6340 {
6341 int uid = iter->first;
6342 LuaContextInfo& info = *iter->second;
6343 bool wasStarted = info.started;
6344 StopLuaScript(uid);
6345 info.restartLater = wasStarted;
6346 ++iter;
6347 }
6348}
6349
6350void RestartAllLuaScripts()
6351{

Callers

nothing calls this directly

Calls 1

StopLuaScriptFunction · 0.85

Tested by

no test coverage detected