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

Method refresh

library/PluginManager.cpp:938–947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938void PluginManager::refresh()
939{
940 std::lock_guard<std::recursive_mutex> lock{*plugin_mutex};
941 auto files = listPlugins();
942 for (auto f = files.begin(); f != files.end(); ++f)
943 {
944 if (!(*this)[*f])
945 addPlugin(*f);
946 }
947}
948
949bool PluginManager::load (const string &name)
950{

Callers 1

plugMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected