diff options
author | Max Horn | 2009-02-15 23:24:00 +0000 |
---|---|---|
committer | Max Horn | 2009-02-15 23:24:00 +0000 |
commit | c556589d74b4439391d3968975e44c02cdea9818 (patch) | |
tree | 455c98baeb99c4dc2c0b4261b8188212ee6cb794 | |
parent | 08b62c7827b7fbc1c8e65c0edf5f835996e9821f (diff) | |
download | scummvm-rg350-c556589d74b4439391d3968975e44c02cdea9818.tar.gz scummvm-rg350-c556589d74b4439391d3968975e44c02cdea9818.tar.bz2 scummvm-rg350-c556589d74b4439391d3968975e44c02cdea9818.zip |
Make failure reports in adv game detector a bit more verbose (show data path, useful if you mass add and then don't know which games are unknown)
svn-id: r38329
-rw-r--r-- | engines/advancedDetector.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp index 3f7928c403..907d4fc0bb 100644 --- a/engines/advancedDetector.cpp +++ b/engines/advancedDetector.cpp @@ -296,15 +296,15 @@ struct SizeMD5 { typedef Common::HashMap<Common::String, SizeMD5, Common::IgnoreCase_Hash, Common::IgnoreCase_EqualTo> SizeMD5Map; typedef Common::HashMap<Common::String, Common::FSNode, Common::IgnoreCase_Hash, Common::IgnoreCase_EqualTo> FileMap; -static void reportUnknown(const SizeMD5Map &filesSizeMD5) { +static void reportUnknown(const Common::FSNode &path, const SizeMD5Map &filesSizeMD5) { // TODO: This message should be cleaned up / made more specific. // For example, we should specify at least which engine triggered this. // // Might also be helpful to display the full path (for when this is used // from the mass detector). - printf("Your game version appears to be unknown. Please, report the following\n"); - printf("data to the ScummVM team along with name of the game you tried to add\n"); - printf("and its version/language/etc.:\n"); + printf("The game in '%s' seems to be unknown.\n", path.getPath().c_str()); + printf("Please, report the following data to the ScummVM team along with name\n"); + printf("of the game you tried to add and its version/language/etc.:\n"); for (SizeMD5Map::const_iterator file = filesSizeMD5.begin(); file != filesSizeMD5.end(); ++file) printf(" \"%s\", \"%s\", %d\n", file->_key.c_str(), file->_value.md5, file->_value.size); @@ -443,8 +443,10 @@ static ADGameDescList detectGame(const Common::FSList &fslist, const ADParams &p // We didn't find a match if (matched.empty()) { - if (!filesSizeMD5.empty()) - reportUnknown(filesSizeMD5); + if (!filesSizeMD5.empty()) { + Common::FSNode parent = fslist.begin()->getParent(); + reportUnknown(parent, filesSizeMD5); + } // Filename based fallback if (params.fileBasedFallback != 0) |