| 6330 | } |
| 6331 | |
| 6332 | void 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 | |
| 6350 | void RestartAllLuaScripts() |
| 6351 | { |
nothing calls this directly
no test coverage detected