[Scummvm-cvs-logs] SF.net SVN: scummvm: [25177] scummvm/trunk/common/advancedDetector.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Thu Jan 25 02:01:02 CET 2007
Revision: 25177
http://scummvm.svn.sourceforge.net/scummvm/?rev=25177&view=rev
Author: fingolfin
Date: 2007-01-24 17:01:01 -0800 (Wed, 24 Jan 2007)
Log Message:
-----------
Removed getDescription() function
Modified Paths:
--------------
scummvm/trunk/common/advancedDetector.cpp
Modified: scummvm/trunk/common/advancedDetector.cpp
===================================================================
--- scummvm/trunk/common/advancedDetector.cpp 2007-01-25 00:51:32 UTC (rev 25176)
+++ scummvm/trunk/common/advancedDetector.cpp 2007-01-25 01:01:01 UTC (rev 25177)
@@ -192,15 +192,6 @@
}
-static String getDescription(const ADGameDescription *g) {
- char tmp[256];
-
- snprintf(tmp, 256, "%s (%s %s/%s)", g->gameid, g->extra,
- getPlatformDescription(g->platform), getLanguageDescription(g->language));
-
- return String(tmp);
-}
-
static ADList detectGame(ADGameDescList gameDescriptions, const FSList *fslist, const Common::ADParams ¶ms, Language language, Platform platform) {
typedef HashMap<String, bool, CaseSensitiveString_Hash, CaseSensitiveString_EqualTo> StringSet;
StringSet filesList;
@@ -325,7 +316,8 @@
debug(3, "Matched file: %s", tstr.c_str());
}
if (!fileMissing) {
- debug(2, "Found game: %s (%d)", getDescription(g).c_str(), i);
+ debug(2, "Found game: %s (%s %s/%s) (%d)", g->gameid, g->extra,
+ getPlatformDescription(g->platform), getLanguageDescription(g->language), i);
// Count the number of matching files. Then, only keep those
// entries which match a maximal amount of files.
@@ -345,7 +337,8 @@
}
} else {
- debug(5, "Skipping game: %s (%d)", getDescription(g).c_str(), i);
+ debug(5, "Skipping game: %s (%s %s/%s) (%d)", g->gameid, g->extra,
+ getPlatformDescription(g->platform), getLanguageDescription(g->language), i);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list