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

Function RestartAllLuaScripts

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

Source from the content-addressed store, hash-verified

6348}
6349
6350void RestartAllLuaScripts()
6351{
6352 if(!g_stopAllScriptsEnabled)
6353 return;
6354
6355 std::map<int, LuaContextInfo*>::const_iterator iter = luaContextInfo.begin();
6356 std::map<int, LuaContextInfo*>::const_iterator end = luaContextInfo.end();
6357 while(iter != end)
6358 {
6359 int uid = iter->first;
6360 LuaContextInfo& info = *iter->second;
6361 if(info.restartLater || info.started)
6362 {
6363 info.restartLater = false;
6364 RunLuaScriptFile(uid, info.lastFilename.c_str());
6365 }
6366 ++iter;
6367 }
6368}
6369
6370// sets anything that needs to depend on the total number of scripts running
6371void RefreshScriptStartedStatus()

Callers

nothing calls this directly

Calls 2

RunLuaScriptFileFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected