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/adl | |
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/adl')
-rw-r--r-- | engines/adl/detection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/adl/detection.cpp b/engines/adl/detection.cpp index ab634bc02a..14646c78e3 100644 --- a/engines/adl/detection.cpp +++ b/engines/adl/detection.cpp @@ -332,7 +332,7 @@ public: int getMaximumSaveSlot() const { return 'O' - 'A'; } SaveStateList listSaves(const char *target) const; void removeSaveState(const char *target, int slot) const; - 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; bool addFileProps(const FileMap &allFiles, Common::String fname, ADFilePropertiesMap &filePropsMap) const; @@ -511,9 +511,9 @@ bool AdlMetaEngine::addFileProps(const FileMap &allFiles, Common::String fname, } // Based on AdvancedMetaEngine::detectGame -ADGameDescList AdlMetaEngine::detectGame(const Common::FSNode &parent, const FileMap &allFiles, Common::Language language, Common::Platform platform, const Common::String &extra) const { +ADGameDescList AdlMetaEngine::detectGame(const Common::FSNode &parent, const FileMap &allFiles, Common::Language language, Common::Platform platform, const Common::String &extra, bool useUnknownGameDialog) const { // We run the file-based detector first and then add to the returned list - ADGameDescList matched = AdvancedMetaEngine::detectGame(parent, allFiles, language, platform, extra); + ADGameDescList matched = AdvancedMetaEngine::detectGame(parent, allFiles, language, platform, extra, useUnknownGameDialog); debug(3, "Starting disk image detection in dir '%s'", parent.getPath().c_str()); @@ -605,7 +605,7 @@ ADGameDescList AdlMetaEngine::detectGame(const Common::FSNode &parent, const Fil // TODO: This could be improved to handle matched and unknown games together in a single directory if (matched.empty()) { if (!filesProps.empty() && gotAnyMatchesWithAllFiles) { - reportUnknown(parent, filesProps, matchedGameIds); + reportUnknown(parent, filesProps, matchedGameIds, useUnknownGameDialog); } } |