From 6b2ff5616b1083c2135f179b797cc1db952cb0b0 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 14 Feb 2007 00:38:45 +0000 Subject: Minor cleanup svn-id: r25579 --- common/advancedDetector.cpp | 12 +++--------- 1 file 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 -- cgit v1.2.3