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

Function enable_plugin

plugins/workflow.cpp:472–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472static void enable_plugin(color_ostream &out)
473{
474 if (!config.isValid())
475 {
476 config = World::AddPersistentSiteData("workflow/config");
477 config.ival(0) = 0;
478 }
479
480 setOptionEnabled(CF_ENABLED, true);
481 enabled = true;
482 out << "Enabling the plugin." << endl;
483
484 start_protect(out);
485}
486
487/******************************
488 * JOB AUTO-RECOVERY *

Callers 2

workflow_cmdFunction · 0.70

Calls 4

start_protectFunction · 0.85
ivalMethod · 0.80
setOptionEnabledFunction · 0.70
isValidMethod · 0.45

Tested by

no test coverage detected