MCPcopy Create free account
hub / github.com/DFHack/dfhack / loadAll

Method loadAll

library/PluginManager.cpp:963–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961}
962
963bool 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
977bool PluginManager::unload (const string &name)
978{

Callers 1

loadMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected