diff options
| author | Eugene Sandulenko | 2006-10-02 23:31:14 +0000 |
|---|---|---|
| committer | Eugene Sandulenko | 2006-10-02 23:31:14 +0000 |
| commit | 107a9f3bef2265415df0d6c1e1d255161eeca193 (patch) | |
| tree | b09cae85691c0ef37110c780e34cc81202041941 /common | |
| parent | 60aee54bfefc492b19f6c50a2040f182bab3bdda (diff) | |
| download | scummvm-rg350-107a9f3bef2265415df0d6c1e1d255161eeca193.tar.gz scummvm-rg350-107a9f3bef2265415df0d6c1e1d255161eeca193.tar.bz2 scummvm-rg350-107a9f3bef2265415df0d6c1e1d255161eeca193.zip | |
Moved unrelated fields out of ADGameDescription structure.
svn-id: r24090
Diffstat (limited to 'common')
| -rw-r--r-- | common/advancedDetector.cpp | 4 | ||||
| -rw-r--r-- | common/advancedDetector.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/common/advancedDetector.cpp b/common/advancedDetector.cpp index 4a939cce3c..3399f4d4ca 100644 --- a/common/advancedDetector.cpp +++ b/common/advancedDetector.cpp @@ -103,6 +103,7 @@ ADList AdvancedDetector::detectGame(const FSList *fslist, Language language, Pla tstr = file->_key; tstr.toLowercase(); + debug(3, "+ %s", tstr.c_str()); if (!filesMD5.contains(tstr)) { if (testFile.open(file->_key)) { testFile.close(); @@ -112,6 +113,7 @@ ADList AdvancedDetector::detectGame(const FSList *fslist, Language language, Pla sprintf(md5str + j*2, "%02x", (int)md5sum[j]); } filesMD5[tstr] = String(md5str); + debug(3, "> %s: %s", tstr.c_str(), md5str); } } } @@ -136,6 +138,8 @@ ADList AdvancedDetector::detectGame(const FSList *fslist, Language language, Pla if (strcmp(fileDesc->md5, filesMD5[tstr].c_str()) && strcmp(fileDesc->md5, filesMD5[tstr2].c_str())) { fileMissing = true; break; + } else { + debug(3, "Matched file: %s", tstr.c_str()); } } if (!fileMissing) { diff --git a/common/advancedDetector.h b/common/advancedDetector.h index 055534e56d..c3396a9ddc 100644 --- a/common/advancedDetector.h +++ b/common/advancedDetector.h @@ -34,12 +34,9 @@ struct ADGameFileDescription { struct ADGameDescription { const char *name; - int gameType; - int gameId; const char *extra; int filesCount; ADGameFileDescription *filesDescriptions; - uint32 features; Language language; Platform platform; }; |
