aboutsummaryrefslogtreecommitdiff
path: root/engines/touche
diff options
context:
space:
mode:
authorSven Hesse2012-06-27 04:56:19 +0200
committerSven Hesse2012-06-27 05:14:18 +0200
commit18fc453b97e4b67e5e4bd6522c8b8dd05d289910 (patch)
tree3d236836944894c3d60760c3bbc6ea54e8295559 /engines/touche
parent02375fa1e62aef578117e98c864d83939cac7229 (diff)
downloadscummvm-rg350-18fc453b97e4b67e5e4bd6522c8b8dd05d289910.tar.gz
scummvm-rg350-18fc453b97e4b67e5e4bd6522c8b8dd05d289910.tar.bz2
scummvm-rg350-18fc453b97e4b67e5e4bd6522c8b8dd05d289910.zip
TOUCHE: Report unknown game variant when using the file based fallback detector
Given the message Touche prints when it found a game, printing the MD5 sums of the files was probably what it expected the AdvancedDetector would do in the filebase fallback detector. This may have been true in the past, but it's not what it does anymore, rendering the message pointless. This fixes it by calling the now accessable reportUnknown method.
Diffstat (limited to 'engines/touche')
-rw-r--r--engines/touche/detection.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/engines/touche/detection.cpp b/engines/touche/detection.cpp
index 2566597e6c..e4bbe0c4c1 100644
--- a/engines/touche/detection.cpp
+++ b/engines/touche/detection.cpp
@@ -135,19 +135,13 @@ public:
}
virtual const ADGameDescription *fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const {
- const ADGameDescription *matchedDesc = detectGameFilebased(allFiles, fslist, Touche::fileBasedFallback);
-
- if (matchedDesc) { // We got a match
- Common::String report = Common::String::format(_("Your game version has been detected using "
- "filename matching as a variant of %s."), matchedDesc->gameid);
- report += "\n";
- report += _("If this is an original and unmodified version, please report any");
- report += "\n";
- report += _("information previously printed by ScummVM to the team.");
- report += "\n";
- g_system->logMessage(LogMessageType::kInfo, report.c_str());
- }
+ ADFilePropertiesMap filesProps;
+
+ const ADGameDescription *matchedDesc = detectGameFilebased(allFiles, fslist, Touche::fileBasedFallback, &filesProps);
+ if (!matchedDesc)
+ return 0;
+ reportUnknown(fslist.begin()->getParent(), filesProps);
return matchedDesc;
}