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

Function disable_plugin

plugins/autolabor/autolabor.cpp:412–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412static void disable_plugin(color_ostream& out)
413{
414 if (config.isValid())
415 setOptionEnabled(CF_ENABLED, false);
416
417 enable_autolabor = false;
418 out << "Disabling autolabor." << std::endl;
419
420 cleanup_state();
421}
422
423DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <PluginCommand> &commands)
424{

Callers 1

Calls 3

setOptionEnabledFunction · 0.70
cleanup_stateFunction · 0.70
isValidMethod · 0.45

Tested by

no test coverage detected