aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/advancedDetector.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index 907d4fc0bb..42908e7020 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -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);
}