Changeset 3285 in orxonox.OLD for orxonox/branches/updater/src/gui/orxonox_gui_update.cc
- Timestamp:
- Dec 26, 2004, 1:31:19 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui_update.cc
r3284 r3285 30 30 #include "orxonox_gui.h" 31 31 #include <stdio.h> 32 #include <stdlib.h> 32 33 33 34 using namespace std; … … 38 39 OrxonoxGuiUpdate::OrxonoxGuiUpdate () 39 40 { 41 this->getSystemInfo(); 42 40 43 this->updateFrame = new Frame ("Update-Options:"); 41 44 this->updateFrame->setGroupName ("update"); … … 70 73 { 71 74 return updateFrame; 75 } 76 77 /** 78 \brief Look what info we can get from this system 79 */ 80 bool OrxonoxGuiUpdate::getSystemInfo(void) 81 { 82 PRINTF(3)("Grabbing system information\n"); 83 tmpDir = getenv("TMPDIR"); 84 if (!tmpDir) 85 tmpDir = "/tmp"; 86 PRINTF(4)("Temporary directory is: %s\n", tmpDir); 87 88 #ifdef __WIN32__ 89 homeDir = getenv ("USERPROFILE"); 90 #else 91 homeDir = getenv("HOME"); 92 #endif 93 PRINTF(4)("Home directory is %s\n", homeDir); 94 95 installDataDir = "/usr/share/games/orxonox"; 96 PRINTF(4)("Installation of orxonox-data will go to this directory is %s\n", installDataDir); 97 98 installSourceDir = "/usr/games/bin"; 99 PRINTF(4)("Installation of orxonox-source will go to this directory is %s\n", installSourceDir); 100 101 userName = getenv("USER"); 102 PRINTF(4)("Logged in username is: %s\n", userName); 72 103 } 73 104
Note: See TracChangeset
for help on using the changeset viewer.