ruby: add support for enable/disable plugin

develop
jj 2013-10-07 13:58:28 +02:00
parent a18347608a
commit 4ba4f90147
1 changed files with 10 additions and 0 deletions

@ -46,6 +46,16 @@ static std::vector<std::string> *dfhack_run_queue;
DFHACK_PLUGIN("ruby")
DFhackDataExport bool plugin_is_enabled = true;
DFhackCExport command_result plugin_enable(color_ostream &out, bool enable)
{
plugin_is_enabled = enable;
return CR_OK;
}
DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <PluginCommand> &commands)
{
onupdate_active = 0;