Create `stocksettings` directory on startup

develop
Lethosor 2015-01-26 16:28:57 -05:00
parent 08110312ff
commit 58f896d569
1 changed files with 4 additions and 3 deletions

@ -95,11 +95,12 @@ DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <Plug
);
}
std::cerr << "world: " << sizeof ( df::world ) << " ui: " << sizeof ( df::ui )
<< " b_stock: " << sizeof ( building_stockpilest ) << endl;
if ( !Filesystem::isdir ( "stocksettings" ) )
{
if ( !Filesystem::mkdir( "stocksettings" ) )
{
out.printerr("stockpiles: could not create 'stocksettings' directory!\n");
}
}
return CR_OK;