Changeset 4052 in orxonox.OLD for orxonox/branches/guiMerge
- Timestamp:
- May 5, 2005, 1:17:00 AM (20 years ago)
- Location:
- orxonox/branches/guiMerge/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/guiMerge/src/lib/gui/gui/gui_exec.cc
r4051 r4052 110 110 PRINTF(3)("Config Directory is: %s.\n", this->confDir); 111 111 //! \todo F** Windows-support 112 #ifndef __WIN32__ 112 113 mkdir(this->confDir, 0755); 114 #else /* __WiN32__ */ 115 mkdir(this->confDir); 116 #endif /* __WIN32__ */ 113 117 } 114 118 -
orxonox/branches/guiMerge/src/lib/gui/gui/gui_flags.cc
r4047 r4052 63 63 64 64 this->flagsLabel->ereaseText(); 65 this->flagsLabel->appendText( progExecutable);65 this->flagsLabel->appendText(executable); 66 66 widget->walkThrough(OrxonoxGuiFlags::flagsText, &flagInfo, 0); 67 67 // flagsLabel->setTitle(flagText); -
orxonox/branches/guiMerge/src/lib/gui/gui/gui_gtk.cc
r4049 r4052 36 36 extern OrxonoxGuiFlags* flags; 37 37 38 char* guiExecutable; 39 char* progExecutable; 38 char* executable; 40 39 41 40 /** … … 46 45 bool initGUI(int argc, char *argv[]) 47 46 { 48 guiExecutable = new char[strlen(argv[0])+1]; 49 strcpy(guiExecutable, argv[0]); 50 progExecutable = new char[strlen(guiExecutable)-2]; 51 strncpy(progExecutable, guiExecutable, strlen(guiExecutable)-3); 52 progExecutable[strlen(progExecutable)]= '\0'; 47 executable = new char[strlen(argv[0])+1]; 48 strcpy(executable, argv[0]); 53 49 54 50 #ifdef HAVE_GTK2 -
orxonox/branches/guiMerge/src/lib/gui/gui/gui_gtk.h
r4048 r4052 40 40 GUI_CHAR_ARRAY = 5}; 41 41 42 extern char* guiExecutable; 43 extern char* progExecutable; 42 extern char* executable; 44 43 45 44 bool initGUI(int argc, char* argv[]); -
orxonox/branches/guiMerge/src/orxonox.cc
r4051 r4052 364 364 orx->start(); 365 365 366 delete orx;366 // delete orx; 367 367 ResourceManager::deleteFile("~/.orxonox/orxonox.lock"); 368 368
Note: See TracChangeset
for help on using the changeset viewer.