| 961 | } |
| 962 | |
| 963 | bool PluginManager::loadAll() |
| 964 | { |
| 965 | std::lock_guard<std::recursive_mutex> lock{*plugin_mutex}; |
| 966 | auto files = listPlugins(); |
| 967 | bool ok = true; |
| 968 | // load all plugins in hack/plugins |
| 969 | for (auto f = files.begin(); f != files.end(); ++f) |
| 970 | { |
| 971 | if (!load(*f)) |
| 972 | ok = false; |
| 973 | } |
| 974 | return ok; |
| 975 | } |
| 976 | |
| 977 | bool PluginManager::unload (const string &name) |
| 978 | { |