aboutsummaryrefslogtreecommitdiff
path: root/common/advancedDetector.cpp
diff options
context:
space:
mode:
authorMax Horn2007-02-14 00:38:45 +0000
committerMax Horn2007-02-14 00:38:45 +0000
commit6b2ff5616b1083c2135f179b797cc1db952cb0b0 (patch)
tree9108ec99595f7a3630438bca23d2edffb8cc836a /common/advancedDetector.cpp
parent265deaffffe878194660fcc147f82d43816dee2b (diff)
downloadscummvm-rg350-6b2ff5616b1083c2135f179b797cc1db952cb0b0.tar.gz
scummvm-rg350-6b2ff5616b1083c2135f179b797cc1db952cb0b0.tar.bz2
scummvm-rg350-6b2ff5616b1083c2135f179b797cc1db952cb0b0.zip
Minor cleanup
svn-id: r25579
Diffstat (limited to 'common/advancedDetector.cpp')
-rw-r--r--common/advancedDetector.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/common/advancedDetector.cpp b/common/advancedDetector.cpp
index 146fd1cc03..70d4bc1166 100644
--- a/common/advancedDetector.cpp
+++ b/common/advancedDetector.cpp
@@ -444,11 +444,11 @@ static ADGameDescList detectGame(const FSList *fslist, const Common::ADParams &p
if (allFiles.empty()) {
File testFile;
- while (*ptr) {
+ for (; *ptr; ptr++) {
// skip the gameid
ptr++;
- while (*ptr) {
+ for (; *ptr; ptr++) {
tstr = String(*ptr);
tstr.toLowercase();
@@ -459,11 +459,7 @@ static ADGameDescList detectGame(const FSList *fslist, const Common::ADParams &p
testFile.close();
}
}
-
- ptr++;
}
-
- ptr++;
}
}
@@ -472,7 +468,7 @@ static ADGameDescList detectGame(const FSList *fslist, const Common::ADParams &p
ptr = params.fileBasedFallback;
- while (*ptr) {
+ for (; *ptr; ptr++) {
const char *entryGameid = *ptr++;
fileMissing = false;
int numMatchedFiles = 0;
@@ -505,8 +501,6 @@ static ADGameDescList detectGame(const FSList *fslist, const Common::ADParams &p
debug(4, "and overriden");
}
-
- ptr++;
}
if (matchedGameid) { // We got a match