Skip to content

Commit

Permalink
Fixed the plugin_enabled var errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
RosaryMala committed Jun 22, 2014
1 parent 28acd14 commit 701592b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,12 +570,15 @@ static void * stonesense_thread(ALLEGRO_THREAD * main_thread, void * parms)
//All this fun DFhack stuff I gotta do now.
DFhackCExport command_result stonesense_command(color_ostream &out, std::vector<std::string> & params);

DFHACK_PLUGIN_IS_ENABLED(enabled);//Is this enough?

//set the plugin name/dfhack version
DFHACK_PLUGIN("stonesense");

//This is the init command. it includes input options.
DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <PluginCommand> &commands)
{
enabled = true;
commands.push_back(PluginCommand("stonesense","Start up the stonesense visualiser.",stonesense_command));
commands.push_back(PluginCommand("ssense","Start up the stonesense visualiser.",stonesense_command));
return CR_OK;
Expand Down

0 comments on commit 701592b

Please sign in to comment.