Ticket #8634: clean_md5_output.patch
File clean_md5_output.patch, 1.2 KB (added by , 18 years ago) |
---|
-
common/advancedDetector.cpp
254 254 IntMap filesSize; 255 255 IntMap allFiles; 256 256 257 List<String> sortedFiles; 258 257 259 String tstr, tstr2; 258 260 259 261 uint i; … … 274 276 tstr = String(fileDesc->fileName); 275 277 tstr.toLowercase(); 276 278 tstr2 = tstr + "."; 279 if (!filesList.contains(tstr)) { 280 sortedFiles.push_back(tstr); 281 } 277 282 filesList[tstr] = true; 278 283 filesList[tstr2] = true; 279 284 } … … 410 415 printf("data to the ScummVM team along with name of the game you tried to add\n"); 411 416 printf("and its version/language/etc.:\n"); 412 417 413 for (StringMap::const_iterator file = filesMD5.begin(); file != filesMD5.end(); ++file) 414 printf(" \"%s\", \"%s\", %d\n", file->_key.c_str(), file->_value.c_str(), filesSize[file->_key]); 418 sort(sortedFiles.begin(), sortedFiles.end()); 419 for (List<String>::iterator file = sortedFiles.begin(); file != sortedFiles.end(); ++file) { 420 if (filesMD5.contains(*file)) 421 printf(" \"%s\", \"%s\", %d\n", file->c_str(), filesMD5[*file].c_str(), filesSize[*file]); 422 } 415 423 416 424 printf("\n"); 417 425 }