diff options
author | Max Horn | 2007-01-25 01:01:01 +0000 |
---|---|---|
committer | Max Horn | 2007-01-25 01:01:01 +0000 |
commit | 0314bfdb9487f6de5dd4514f98db39e981eafbdb (patch) | |
tree | 2a7129401574adb2ee50305c5201fcd2dfe8c592 /common | |
parent | 521c7a0d09fd0cb8a6e30045c52fd4ca879b4243 (diff) | |
download | scummvm-rg350-0314bfdb9487f6de5dd4514f98db39e981eafbdb.tar.gz scummvm-rg350-0314bfdb9487f6de5dd4514f98db39e981eafbdb.tar.bz2 scummvm-rg350-0314bfdb9487f6de5dd4514f98db39e981eafbdb.zip |
Removed getDescription() function
svn-id: r25177
Diffstat (limited to 'common')
-rw-r--r-- | common/advancedDetector.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
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<String, bool, CaseSensitiveString_Hash, CaseSensitiveString_EqualTo> 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); } } |