Changeset 3296 in orxonox.OLD for orxonox/branches/updater/src/gui/orxonox_gui.cc
- Timestamp:
- Dec 26, 2004, 11:07:25 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui.cc
r3295 r3296 23 23 24 24 */ 25 26 #include <unistd.h> 25 27 26 28 #include "orxonox_gui.h" … … 99 101 flags->setTextFromFlags (orxonoxGUI); 100 102 103 // Reading Values from File 101 104 exec->setFilename ("~/.orxonox.conf"); 102 105 exec->readFromFile (orxonoxGUI); 106 // Merging changes to the Options from appended flags. 103 107 for (int optCount = 1; optCount < argc; optCount++) 104 108 orxonoxGUI->walkThrough(Widget::flagCheck, argv[optCount], 0); … … 106 110 orxonoxGUI->showall (); 107 111 108 112 // Handling special Cases. 113 if (!access(exec->getConfigFile(), F_OK) && static_cast<Option*>(orxonoxGUI->findWidgetByName("Always Show this Menu", 0))->value == 0) 114 OrxonoxGuiExec::startOrxonox(NULL, NULL); 115 else 116 { 109 117 #ifdef HAVE_GTK2 110 118 mainloopGTK(); … … 118 126 if ((c == 'y' || c == 'Y' || c== 10) && exec->shouldsave()) 119 127 exec->writeToFile (Window::mainWindow); 120 128 121 129 #endif /* HAVE_GTK2 */ 122 130 } 123 131 }
Note: See TracChangeset
for help on using the changeset viewer.