From 0314bfdb9487f6de5dd4514f98db39e981eafbdb Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 25 Jan 2007 01:01:01 +0000 Subject: Removed getDescription() function svn-id: r25177 --- common/advancedDetector.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'common') diff --git a/common/advancedDetector.cpp b/common/advancedDetector.cpp index 7d0e3c834d..8bee0a9556 100644 --- a/common/advancedDetector.cpp +++ b/common/advancedDetector.cpp @@ -192,15 +192,6 @@ int ADVANCED_DETECTOR_DETECT_INIT_GAME( } -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 StringSet; StringSet filesList; @@ -325,7 +316,8 @@ static ADList detectGame(ADGameDescList gameDescriptions, const FSList *fslist, 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 @@ static ADList detectGame(ADGameDescList gameDescriptions, const FSList *fslist, } } 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); } } -- cgit v1.2.3