aboutsummaryrefslogtreecommitdiff
path: root/engines/tucker/detection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tucker/detection.cpp')
-rw-r--r--engines/tucker/detection.cpp31
1 files changed, 4 insertions, 27 deletions
diff --git a/engines/tucker/detection.cpp b/engines/tucker/detection.cpp
index 31d9caef73..4a3313e3f7 100644
--- a/engines/tucker/detection.cpp
+++ b/engines/tucker/detection.cpp
@@ -102,31 +102,6 @@ static const ADGameDescription tuckerGameDescriptions[] = {
AD_TABLE_END_MARKER
};
-static const ADParams detectionParams = {
- // Pointer to ADGameDescription or its superset structure
- (const byte *)tuckerGameDescriptions,
- // Size of that superset structure
- sizeof(ADGameDescription),
- // Number of bytes to compute MD5 sum for
- 512,
- // List of all engine targets
- tuckerGames,
- // Structure for autoupgrading obsolete targets
- 0,
- // Name of single gameid (optional)
- "tucker",
- // List of files for file-based fallback detection (optional)
- 0,
- // Flags
- 0,
- // Additional GUI options (for every game)
- Common::GUIO_NONE,
- // Maximum directory depth
- 1,
- // List of directory globs
- 0
-};
-
static const ADGameDescription tuckerDemoGameDescription = {
"tucker",
"Non-Interactive Demo",
@@ -139,7 +114,9 @@ static const ADGameDescription tuckerDemoGameDescription = {
class TuckerMetaEngine : public AdvancedMetaEngine {
public:
- TuckerMetaEngine() : AdvancedMetaEngine(detectionParams) {
+ TuckerMetaEngine() : AdvancedMetaEngine(tuckerGameDescriptions, sizeof(ADGameDescription), tuckerGames) {
+ _md5Bytes = 512;
+ _singleid = "tucker";
}
virtual const char *getName() const {
@@ -168,7 +145,7 @@ public:
return desc != 0;
}
- virtual const ADGameDescription *fallbackDetect(const Common::FSList &fslist) const {
+ virtual const ADGameDescription *fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const {
for (Common::FSList::const_iterator d = fslist.begin(); d != fslist.end(); ++d) {
Common::FSList audiofslist;
if (d->isDirectory() && d->getName().equalsIgnoreCase("audio") && d->getChildren(audiofslist, Common::FSNode::kListFilesOnly)) {