Ticket #53: configdir.patch
| File configdir.patch, 1.2 kB (added by mdmkolbe, 2 years ago) |
|---|
-
libs/csutil/win32/instpath.cpp
263 263 // 1. CRYSTAL environment variable 264 264 // 2. this machine's system registry 265 265 // 3. if current working directory contains 'vfs.cfg' use this dir. 266 // 4. The dir where the app is 267 // 5. A "CrystalSpace" subfolder under the "Program Files" dir. 268 // 6. hard-wired default path 266 // 4. CS_CONFIGPATH if defined and on Cygwin 267 // 5. The dir where the app is 268 // 6. A "CrystalSpace" subfolder under the "Program Files" dir. 269 // 7. hard-wired default path 269 270 270 271 // try env variable first 271 272 // we check this before we check registry, so that one app can putenv() to … … 297 297 298 298 // No luck to fetch a config setting. Add in order: 299 299 // - current directory 300 // - CS_CONFIGDIR if defined and on Cygwin 300 301 // - application directory 301 302 // - %ProgramFiles%\CrystalSpace 302 303 // - C:\Program Files\CrystalSpace 303 304 304 305 paths->AddUniqueExpanded ("."); 306 #ifdef __CYGWIN__ 307 #ifdef CS_CONFIGDIR 308 paths->AddUniqueExpanded (CS_CONFIGDIR); 309 #endif 310 #endif 305 311 306 312 { 307 313 char apppath[MAX_PATH + 1];
