Changeset 275 for trunk/src/cppbase
- Timestamp:
- Feb 5, 2005, 11:00:37 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cppbase/bs_config.cpp
r274 r275 2279 2279 *@@added V0.9.1 (2000-02-07) [umoeller] 2280 2280 *@@changed V0.9.18 (2002-03-08) [umoeller]: added codec 2281 *@@changed V1.0.5 (2005-01-25) [pr]: Change directory to that of executable 2281 2282 */ 2282 2283 … … 2290 2291 strParams += " "; 2291 2292 strParams.appendUtf8(&codecProcess, _ustrParams); 2293 } 2294 2295 // V1.0.5 (2005-01-26) [pr]: Change directory to that of executable. @@fixes 626. 2296 // We remove any leading quotes and just leave the directory name, excluding a 2297 // trailing slash, unless it is a root directory. 2298 string strDir; 2299 strDir.assignUtf8(&codecProcess, _ustrExecutable); 2300 strDir = strDir.substr(strDir.find_first_not_of("\"'")); 2301 size_type pos = strDir.rfind('\\', 0); 2302 if (pos != string::npos) 2303 { 2304 strDir.erase(pos); 2305 if (strDir.size() == 2 && strDir[1] == ':') 2306 strDir += '\\'; 2307 2308 doshSetCurrentDir(strDir.c_str()); 2292 2309 } 2293 2310
Note:
See TracChangeset
for help on using the changeset viewer.