Merge pull request #511 from lethosor/stocksettings-create-dir

Create `stocksettings` directory on startup
develop
expwnent 2015-01-31 20:17:22 -05:00
commit 6b2e7cfe3e
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::isdir ( "stocksettings" ) )
{ {
if ( !Filesystem::mkdir( "stocksettings" ) )
{
out.printerr("stockpiles: could not create 'stocksettings' directory!\n");
}
} }
return CR_OK; return CR_OK;