Changeset 1538 for code/trunk/src/orxonox/GraphicsEngine.cc
- Timestamp:
- Jun 4, 2008, 10:44:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/GraphicsEngine.cc
r1535 r1538 34 34 #include "OrxonoxStableHeaders.h" 35 35 #include "GraphicsEngine.h" 36 37 #include <fstream> 36 38 37 39 #include <OgreConfigFile.h> … … 260 262 { 261 263 CCOUT(4) << "Configuring Renderer" << std::endl; 262 if (!root_->restoreConfig() && !root_->showConfigDialog()) 263 return false; 264 265 // check for file existence because Ogre displays exceptions if not 266 std::ifstream probe; 267 probe.open(ogreConfigFile_.c_str()); 268 if (!probe) 269 { 270 // create a zero sized file 271 std::ofstream creator; 272 creator.open(ogreConfigFile_.c_str()); 273 creator.close(); 274 } 275 else 276 probe.close(); 277 278 if (!root_->restoreConfig()) 279 if (!root_->showConfigDialog()) 280 return false; 264 281 265 282 CCOUT(4) << "Creating render window" << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.