From: <geo...@us...> - 2012-01-26 20:19:28
|
Revision: 4621 http://freeorion.svn.sourceforge.net/freeorion/revision/?rev=4621&view=rev Author: geoffthemedio Date: 2012-01-26 20:19:22 +0000 (Thu, 26 Jan 2012) Log Message: ----------- Made verbose logging mode output details of parsed buildings. Modified Paths: -------------- trunk/FreeOrion/universe/Building.cpp Modified: trunk/FreeOrion/universe/Building.cpp =================================================================== --- trunk/FreeOrion/universe/Building.cpp 2012-01-26 20:18:31 UTC (rev 4620) +++ trunk/FreeOrion/universe/Building.cpp 2012-01-26 20:19:22 UTC (rev 4621) @@ -248,6 +248,14 @@ s_instance = this; parse::buildings(GetResourceDir() / "buildings.txt", m_building_types); + + if (GetOptionsDB().Get<bool>("verbose-logging")) { + Logger().debugStream() << "Building Types:"; + for (iterator it = begin(); it != end(); ++it) { + const BuildingType* b = it->second; + Logger().debugStream() << " ... " << b->Dump(); + } + } } BuildingTypeManager::~BuildingTypeManager() { |