Skip to content

Commit

Permalink
GOB: Report unknown game variant when using the file based fallback d…
Browse files Browse the repository at this point in the history
…etector
  • Loading branch information
DrMcCoy committed Jun 27, 2012
1 parent 9e7ece4 commit 02375fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion engines/gob/detection/detection.cpp
Expand Up @@ -40,7 +40,14 @@ class GobMetaEngine : public AdvancedMetaEngine {
}

virtual const ADGameDescription *fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const {
return detectGameFilebased(allFiles, fslist, Gob::fileBased);
ADFilePropertiesMap filesProps;

const ADGameDescription *game = detectGameFilebased(allFiles, fslist, Gob::fileBased, &filesProps);
if (!game)
return 0;

reportUnknown(fslist.begin()->getParent(), filesProps);
return game;
}

virtual const char *getName() const {
Expand Down

0 comments on commit 02375fa

Please sign in to comment.