Skip to content

Commit

Permalink
Add nasty red warning text.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Mar 7, 2012
1 parent 688ee15 commit 5199ad9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/df2minecraft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3122,6 +3122,14 @@ DFhackCExport command_result plugin_shutdown ( Core * c )
DFhackCExport command_result mc_export (Core * c, vector <string> & parameters)
{
DFConsole = &(c->con);
// first, check if the user is OK with running this...
std::string question_out;
CommandHistory ch;
DFConsole->printerr("This is experimental/broken/crazy. You are running it at your own risk.\n");
DFConsole->lineedit("Are you sure? Type in 'yes' if you are: ",question_out,ch);
if(question_out != "yes")
return CR_OK;

//load settings xml
TiXmlDocument doc ( "hack/df2mc.xml" );
bool loadOkay = doc.LoadFile();
Expand Down

0 comments on commit 5199ad9

Please sign in to comment.