aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-09-29 17:18:12 +0000
committerTorbjörn Andersson2006-09-29 17:18:12 +0000
commit907141c909fa69c9357cd3b115f52459e999c2a7 (patch)
tree47f34f011f8c486078cf364ce4fb4457933b73d1
parentfa5c1db17035d9985f598787bca9772f4ae8ef70 (diff)
downloadscummvm-rg350-907141c909fa69c9357cd3b115f52459e999c2a7.tar.gz
scummvm-rg350-907141c909fa69c9357cd3b115f52459e999c2a7.tar.bz2
scummvm-rg350-907141c909fa69c9357cd3b115f52459e999c2a7.zip
Some minor formating changes.
svn-id: r24019
-rw-r--r--engines/agos/game.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/agos/game.cpp b/engines/agos/game.cpp
index 8224712ec9..9c370e3988 100644
--- a/engines/agos/game.cpp
+++ b/engines/agos/game.cpp
@@ -1544,14 +1544,17 @@ static int detectGame(const FSList *fslist, Common::Language language, Common::P
if (fslist != NULL) {
for (FSList::const_iterator file = fslist->begin(); file != fslist->end(); ++file) {
- if (file->isDirectory()) continue;
+ if (file->isDirectory())
+ continue;
tstr = file->name();
tstr.toLowercase();
tstr2 = tstr + ".";
- if (!filesList.contains(tstr) && !filesList.contains(tstr2)) continue;
+ if (!filesList.contains(tstr) && !filesList.contains(tstr2))
+ continue;
- if (!Common::md5_file(*file, md5sum, FILE_MD5_BYTES)) continue;
+ if (!Common::md5_file(*file, md5sum, FILE_MD5_BYTES))
+ continue;
for (j = 0; j < 16; j++) {
sprintf(md5str + j*2, "%02x", (int)md5sum[j]);
}
@@ -1640,7 +1643,6 @@ static int detectGame(const FSList *fslist, Common::Language language, Common::P
}
}
-
returnMatches = (int *)malloc(matchedCount * sizeof(int));
j = 0;
for (i = 0; i < matchedCount; i++)