diff options
author | Lothar Serra Mari | 2018-04-25 13:04:25 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-04-29 21:47:10 +0100 |
commit | 451cf2304f8e27b3f5aab9cfa56d7b9bcdc8ffcf (patch) | |
tree | 7787d5d3afdde669d72764928ac7ad3ad4893e2a /engines/advancedDetector.h | |
parent | 4220e14522c69205e08de8c2676b6fdc858e5a42 (diff) | |
download | scummvm-rg350-451cf2304f8e27b3f5aab9cfa56d7b9bcdc8ffcf.tar.gz scummvm-rg350-451cf2304f8e27b3f5aab9cfa56d7b9bcdc8ffcf.tar.bz2 scummvm-rg350-451cf2304f8e27b3f5aab9cfa56d7b9bcdc8ffcf.zip |
ENGINES: Show the unknown Game dialog only when the detector is launched by the Add Game feature
Diffstat (limited to 'engines/advancedDetector.h')
-rw-r--r-- | engines/advancedDetector.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/advancedDetector.h b/engines/advancedDetector.h index 7bd7de3eb8..d7e85f86fe 100644 --- a/engines/advancedDetector.h +++ b/engines/advancedDetector.h @@ -278,7 +278,7 @@ public: virtual GameDescriptor findGame(const char *gameId) const; - virtual GameList detectGames(const Common::FSList &fslist) const; + virtual GameList detectGames(const Common::FSList &fslist, bool useUnknownGameDialog = false) const; virtual Common::Error createInstance(OSystem *syst, Engine **engine) const; @@ -313,7 +313,7 @@ protected: * @param extra restrict results to specified extra string (only if kADFlagUseExtraAsHint is set) * @return list of ADGameDescription pointers corresponding to matched games */ - virtual ADGameDescList detectGame(const Common::FSNode &parent, const FileMap &allFiles, Common::Language language, Common::Platform platform, const Common::String &extra) const; + virtual ADGameDescList detectGame(const Common::FSNode &parent, const FileMap &allFiles, Common::Language language, Common::Platform platform, const Common::String &extra, bool useUnknownGameDialog = false) const; /** * Iterates over all ADFileBasedFallback records inside fileBasedFallback. @@ -333,7 +333,7 @@ protected: * Log and print a report that we found an unknown game variant, together with the file * names, sizes and MD5 sums. */ - void reportUnknown(const Common::FSNode &path, const ADFilePropertiesMap &filesProps, const ADGameIdList &matchedGameIds = ADGameIdList()) const; + void reportUnknown(const Common::FSNode &path, const ADFilePropertiesMap &filesProps, const ADGameIdList &matchedGameIds = ADGameIdList(), bool useUnknownGameDialog = false) const; // TODO void updateGameDescriptor(GameDescriptor &desc, const ADGameDescription *realDesc) const; |