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

Function setOptionEnabled

plugins/autolabor/labormanager.cpp:312–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312static void setOptionEnabled(ConfigFlags flag, bool on)
313{
314 if (!config.isValid())
315 return;
316
317 if (on)
318 config.ival(0) |= flag;
319 else
320 config.ival(0) &= ~flag;
321}
322
323static void cleanup_state()
324{

Callers 3

enable_pluginFunction · 0.70
labormanagerFunction · 0.70

Calls 2

ivalMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected