Ticket #3398: advdetect-traces.diff
File advdetect-traces.diff, 1.3 KB (added by , 17 years ago) |
---|
-
common/advancedDetector.cpp
316 316 File testFile; 317 317 318 318 String tstr; 319 319 320 320 uint i; 321 321 char md5str[32+1]; 322 322 … … 391 391 392 392 ADGameDescList matched; 393 393 int maxFilesMatched = 0; 394 394 printf("params.descs %p (%d)\n", params.descs, params.descItemSize); 395 395 // MD5 based matching 396 396 for (i = 0, descPtr = params.descs; ((const ADGameDescription *)descPtr)->gameid != 0; descPtr += params.descItemSize, ++i) { 397 397 g = (const ADGameDescription *)descPtr; 398 398 fileMissing = false; 399 399 printf("descPtr %p (%d) gameid %s language %d/%d platform %d/%d\n", descPtr, params.descItemSize, g->gameid, language, g->language, platform, g->platform); 400 400 // Do not even bother to look at entries which do not have matching 401 401 // language and platform (if specified). 402 402 if ((language != UNK_LANG && g->language != language) || … … 410 410 tstr.toLowercase(); 411 411 412 412 if (!filesMD5.contains(tstr)) { 413 printf("!filesMD5.contains fileDesc %p fileDesc->fileName %s (%s)\n", fileDesc, fileDesc->fileName, tstr.c_str()); 413 414 fileMissing = true; 414 415 break; 415 416 } … … 458 459 } 459 460 } 460 461 461 // We've found a match 462 // We've found a match 462 463 if (!matched.empty()) 463 464 return matched; 464 465