Advanced detector: Slightly more verbose debug output

svn-id: r38652
This commit is contained in:
Max Horn 2009-02-21 02:59:45 +00:00
parent 7bc4b8667e
commit 0901c90654

View file

@ -322,7 +322,10 @@ static ADGameDescList detectGame(const Common::FSList &fslist, const ADParams &p
const ADGameDescription *g;
const byte *descPtr;
debug(3, "Starting detection");
if (fslist.empty())
return ADGameDescList();
Common::FSNode parent = fslist.begin()->getParent();
debug(3, "Starting detection in dir '%s'", parent.getPath().c_str());
// First we compose a hashmap of all files in fslist.
// Includes nifty stuff like removing trailing dots and ignoring case.
@ -444,7 +447,6 @@ static ADGameDescList detectGame(const Common::FSList &fslist, const ADParams &p
// We didn't find a match
if (matched.empty()) {
if (!filesSizeMD5.empty()) {
Common::FSNode parent = fslist.begin()->getParent();
reportUnknown(parent, filesSizeMD5);
}