| 2122 | } |
| 2123 | |
| 2124 | void CPluginManager::RefreshAll() |
| 2125 | { |
| 2126 | /* If we're in a load lock, just skip this whole bit. */ |
| 2127 | if (m_LoadingLocked) |
| 2128 | { |
| 2129 | return; |
| 2130 | } |
| 2131 | |
| 2132 | for (PluginIter iter(m_plugins); !iter.done(); iter.next()) { |
| 2133 | CPlugin *pl = (*iter); |
| 2134 | if (pl->HasUpdatedFile()) |
| 2135 | UnloadPlugin(pl); |
| 2136 | } |
| 2137 | } |
| 2138 | |
| 2139 | bool CPlugin::HasUpdatedFile() |
| 2140 | { |
no test coverage detected