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

Method can_be_enabled

library/include/PluginManager.h:170–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 bool reload(color_ostream &out);
169
170 bool can_be_enabled() { return plugin_is_enabled != 0; }
171 bool is_enabled() { return plugin_is_enabled && *plugin_is_enabled; }
172 bool can_set_enabled() { return plugin_is_enabled != 0 && plugin_enable; }
173 command_result set_enabled(color_ostream &out, bool enable);

Callers 2

enableMethod · 0.80
plugMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected