- Timestamp:
- Oct 22, 2005, 5:50:30 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/orxonox.cc
r5423 r5424 162 162 const char* Orxonox::getConfigFile () 163 163 { 164 this->configFileName = ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE); 164 if (ResourceManager::isFile("orxonox.conf")) 165 { 166 this->configFileName = new char[strlen("orxonox.conf")+1]; 167 strcpy(this->configFileName, "orxonox.conf"); 168 } 169 else 170 this->configFileName = ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE); 165 171 this->iniParser = new IniParser(this->configFileName); 172 PRINTF(3)("Parsed Config File: '%s'\n", this->configFileName); 166 173 } 167 174 … … 275 282 " Please Change in File %s Section %s Entry %s to a suitable value\n", 276 283 ResourceManager::getInstance()->getDataDir(), 277 DEFAULT_CONFIG_FILE,284 this->configFileName, 278 285 CONFIG_SECTION_DATA, 279 286 CONFIG_NAME_DATADIR); … … 392 399 { 393 400 // checking for existence of the configuration-files, or if the lock file is still used 394 if (showGui || 395 !ResourceManager::isFile(DEFAULT_CONFIG_FILE) 396 #if DEBUG < 3 401 if (showGui || (!ResourceManager::isFile("./orxonox.conf") && 402 !ResourceManager::isFile(DEFAULT_CONFIG_FILE)) 403 #if DEBUG < 3 // developers do not need to see the GUI, when orxonox fails 397 404 || ResourceManager::isFile(DEFAULT_LOCK_FILE) 398 405 #endif
Note: See TracChangeset
for help on using the changeset viewer.