diff options
author | Sven Hesse | 2012-06-27 04:53:39 +0200 |
---|---|---|
committer | Sven Hesse | 2012-06-27 05:14:18 +0200 |
commit | 02375fa1e62aef578117e98c864d83939cac7229 (patch) | |
tree | 7b40c846633b88dbfafcbb7b238daae1c3b38f44 /engines/gob | |
parent | 9e7ece4ebe06bb66d1408189b44ba2aa9d0d6f42 (diff) | |
download | scummvm-rg350-02375fa1e62aef578117e98c864d83939cac7229.tar.gz scummvm-rg350-02375fa1e62aef578117e98c864d83939cac7229.tar.bz2 scummvm-rg350-02375fa1e62aef578117e98c864d83939cac7229.zip |
GOB: Report unknown game variant when using the file based fallback detector
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/detection/detection.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/gob/detection/detection.cpp b/engines/gob/detection/detection.cpp index 9400001636..14da54637b 100644 --- a/engines/gob/detection/detection.cpp +++ b/engines/gob/detection/detection.cpp @@ -40,7 +40,14 @@ public: } 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 { |