Changeset 4059 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 5, 2005, 2:26:30 AM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/gui/gui/gui.cc
r4058 r4059 117 117 #endif /* HAVE_CURL */ 118 118 119 // case start-with-gui. 120 if (!access(exec->getConfigFile(), F_OK) && 121 static_cast<Option*>(orxonoxGUI->findWidgetByName("Always Show this Menu", 0))->value == 0) 122 GuiExec::startOrxonox(NULL, exec); 123 else 124 { 125 mainloopGUI(); 126 } 127 119 mainloopGUI(); 128 120 } 129 121 -
orxonox/trunk/src/orxonox.cc
r4057 r4059 49 49 Orxonox::Orxonox () 50 50 { 51 pause = false; 51 this->pause = false; 52 52 53 this->world = NULL; 53 54 this->resources = NULL; … … 292 293 293 294 295 bool showGui = false; 294 296 295 297 /** … … 317 319 if(! strcmp( "--help", argv[i])) return startHelp(); 318 320 else if(! strcmp( "--benchmark", argv[i])) return startBenchmarks(); 319 321 else if(! strcmp( "--gui", argv[i]) || !strcmp("-g", argv[i])) showGui = true; 320 322 else PRINTF(2)("Orxonox does not understand the arguments %s\n", argv[i]); 321 323 } … … 333 335 PRINT(0)(" --benchmark\tstarts the orxonox benchmark\n"); 334 336 PRINT(0)(" --help \tshows this menu\n"); 337 PRINT(0)(" --gui/-g \tDisplays the Gui on startup\n"); 335 338 } 336 339 … … 339 342 { 340 343 // checking for existence of the configuration-files 341 if (!ResourceManager::isFile("~/.orxonox/orxonox.conf") || ResourceManager::isFile("~/.orxonox/orxonox.lock")) 344 if (showGui || 345 !ResourceManager::isFile("~/.orxonox/orxonox.conf") || 346 ResourceManager::isFile("~/.orxonox/orxonox.lock")) 342 347 { 343 348 if (ResourceManager::isFile("~/.orxonox/orxonox.lock"))
Note: See TracChangeset
for help on using the changeset viewer.