aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/detection.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2010-08-24 13:11:12 +0000
committerJohannes Schickel2010-08-24 13:11:12 +0000
commitc913ffe83f1b5c7653a060ad489e80c86c3e715a (patch)
treef986f44dc85dc57ca8846f15975acd61a4b11957 /engines/kyra/detection.cpp
parenta551faa8a41541fd5529a64d8a6d21844d920569 (diff)
downloadscummvm-rg350-c913ffe83f1b5c7653a060ad489e80c86c3e715a.tar.gz
scummvm-rg350-c913ffe83f1b5c7653a060ad489e80c86c3e715a.tar.bz2
scummvm-rg350-c913ffe83f1b5c7653a060ad489e80c86c3e715a.zip
KYRA: Add support for playing KYRA3 from CD.
svn-id: r52336
Diffstat (limited to 'engines/kyra/detection.cpp')
-rw-r--r--engines/kyra/detection.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/kyra/detection.cpp b/engines/kyra/detection.cpp
index 135a9ae7b2..875b49b62d 100644
--- a/engines/kyra/detection.cpp
+++ b/engines/kyra/detection.cpp
@@ -43,6 +43,13 @@ struct KYRAGameDescription {
#include "kyra/detection_tables.h"
+namespace {
+
+const char * const directoryGlobs[] = {
+ "malcolm",
+ 0
+};
+
const ADParams detectionParams = {
// Pointer to ADGameDescription or its superset structure
(const byte *)adGameDescs,
@@ -63,11 +70,13 @@ const ADParams detectionParams = {
// Additional GUI options (for every game}
Common::GUIO_NONE,
// Maximum directory depth
- 1,
+ 2,
// List of directory globs
- 0
+ directoryGlobs
};
+} // End of anonymous namespace
+
class KyraMetaEngine : public AdvancedMetaEngine {
public:
KyraMetaEngine() : AdvancedMetaEngine(detectionParams) {}