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

Function enable_plugin

plugins/siege-engine.cpp:1967–1978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1965}
1966
1967static bool enable_plugin()
1968{
1969 if (is_enabled)
1970 return true;
1971
1972 auto entry = World::GetPersistentData("siege-engine/enabled", NULL);
1973 if (!entry.isValid())
1974 return false;
1975
1976 enable_hooks(true);
1977 return true;
1978}
1979
1980static void clear_caches(color_ostream &out)
1981{

Callers 5

setTargetAreaFunction · 0.70
setAmmoItemFunction · 0.70
addStockpileLinkFunction · 0.70
saveWorkshopProfileFunction · 0.70

Calls 2

enable_hooksFunction · 0.70
isValidMethod · 0.45

Tested by

no test coverage detected