Changeset 499 for AE/Installer/trunk/source
- Timestamp:
- Mar 3, 2010, 3:09:02 AM (15 years ago)
- Location:
- AE/Installer/trunk/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/installer.cpp
r496 r499 940 940 while (getline(*fileHandler, line)) 941 941 { 942 StripNewlines(&line); 942 943 tokenize(line, tokens); 943 944 iter = tokens.begin(); … … 1471 1472 } 1472 1473 1474 /* StripNewlines() gets rids of any linebreaks that come from text returned by getline(); \ 1475 | getline() should be stripping those out, but Windows CR/LF files seem to be sneaking | 1476 \ some extra return characters into strings in the ReadInstallInfoCfg() function. */ 1477 void StripNewlines(string *theLine) 1478 { 1479 int deleteFromHere = 0; 1480 deleteFromHere = theLine->find("\r"); 1481 if (deleteFromHere > 0) 1482 theLine->erase(deleteFromHere, theLine->size()); 1483 } 1484 1473 1485 void clearOldDats(void) { 1474 1486 directory_iterator end_iter_gdf; -
AE/Installer/trunk/source/installer.h
r487 r499 59 59 bool SortBySize(string, string); 60 60 void tokenize(const string&, vector<string>&, const string& delimiters = " "); 61 void StripNewlines(string *); 61 62 void clearOldDats(void); 62 63 void writeInstalledMods( vector<string> );
Note:
See TracChangeset
for help on using the changeset viewer.