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

Function autowatch_setEnabled

plugins/autobutcher.cpp:819–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817}
818
819static void autowatch_setEnabled(color_ostream &out, bool enable) {
820 DEBUG(control,out).print("auto-adding to watchlist {}\n", enable ? "started" : "stopped");
821 config.set_bool(CONFIG_AUTOWATCH, enable);
822 if (config.get_bool(CONFIG_IS_ENABLED))
823 autobutcher_cycle(out);
824}
825
826// set all data for a watchlist race in one go
827// if race is not already on watchlist it will be added

Callers

nothing calls this directly

Calls 2

autobutcher_cycleFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected