| 6348 | } |
| 6349 | |
| 6350 | void 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 |
| 6371 | void RefreshScriptStartedStatus() |
nothing calls this directly
no test coverage detected