| 549 | }; |
| 550 | |
| 551 | static void enable_plugin(color_ostream &out) |
| 552 | { |
| 553 | if (!config.isValid()) |
| 554 | { |
| 555 | config = World::AddPersistentData("labormanager/2.0/config"); |
| 556 | config.ival(0) = 0; |
| 557 | } |
| 558 | |
| 559 | setOptionEnabled(CF_ENABLED, true); |
| 560 | enable_labormanager = true; |
| 561 | out << "Enabling the plugin." << endl; |
| 562 | |
| 563 | cleanup_state(); |
| 564 | init_state(); |
| 565 | } |
| 566 | |
| 567 | DFhackCExport command_result plugin_init(color_ostream &out, std::vector <PluginCommand> &commands) |
| 568 | { |
no test coverage detected