aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/draci/detection.cpp4
-rw-r--r--engines/kyra/detection.cpp2
-rw-r--r--engines/teenagent/detection.cpp11
-rw-r--r--engines/testbed/detection.cpp11
-rw-r--r--engines/toon/detection.cpp12
-rw-r--r--engines/touche/detection.cpp14
-rw-r--r--engines/tucker/detection.cpp11
7 files changed, 57 insertions, 8 deletions
diff --git a/engines/draci/detection.cpp b/engines/draci/detection.cpp
index ce426740fa..78c5c71605 100644
--- a/engines/draci/detection.cpp
+++ b/engines/draci/detection.cpp
@@ -86,7 +86,7 @@ const ADGameDescription gameDescriptions[] = {
} // End of namespace Draci
-const ADParams detectionParams = {
+static const ADParams detectionParams = {
// Pointer to ADGameDescription or its superset structure
(const byte *)Draci::gameDescriptions,
// Size of that superset structure
@@ -103,7 +103,7 @@ const ADParams detectionParams = {
0,
// Flags
0,
- // Global GUI options
+ // Additional GUI options (for every game}
Common::GUIO_NONE,
// Maximum directory depth
1,
diff --git a/engines/kyra/detection.cpp b/engines/kyra/detection.cpp
index 875b49b62d..6c111a6601 100644
--- a/engines/kyra/detection.cpp
+++ b/engines/kyra/detection.cpp
@@ -50,7 +50,7 @@ const char * const directoryGlobs[] = {
0
};
-const ADParams detectionParams = {
+static const ADParams detectionParams = {
// Pointer to ADGameDescription or its superset structure
(const byte *)adGameDescs,
// Size of that superset structure
diff --git a/engines/teenagent/detection.cpp b/engines/teenagent/detection.cpp
index 0bdf35a37d..d741039e8d 100644
--- a/engines/teenagent/detection.cpp
+++ b/engines/teenagent/detection.cpp
@@ -83,16 +83,27 @@ static const ADGameDescription teenAgentGameDescriptions[] = {
};
static const ADParams detectionParams = {
+ // Pointer to ADGameDescription or its superset structure
(const byte *)teenAgentGameDescriptions,
+ // Size of that superset structure
sizeof(ADGameDescription),
+ // Number of bytes to compute MD5 sum for
5000,
+ // List of all engine targets
teenAgentGames,
+ // Structure for autoupgrading obsolete targets
0,
+ // Name of single gameid (optional)
"teenagent",
+ // 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
};
diff --git a/engines/testbed/detection.cpp b/engines/testbed/detection.cpp
index 1b8a86cea6..734ed0c22a 100644
--- a/engines/testbed/detection.cpp
+++ b/engines/testbed/detection.cpp
@@ -51,16 +51,27 @@ static const ADGameDescription testbedDescriptions[] = {
};
static const ADParams detectionParams = {
+ // Pointer to ADGameDescription or its superset structure
(const byte *)testbedDescriptions,
+ // Size of that superset structure
sizeof(ADGameDescription),
+ // Number of bytes to compute MD5 sum for
512,
+ // List of all engine targets
testbed_setting,
+ // Structure for autoupgrading obsolete targets
0,
+ // Name of single gameid (optional)
"testbed",
+ // List of files for file-based fallback detection (optional)
0,
+ // Flags
ADGF_NO_FLAGS,
+ // Additional GUI options (for every game}
Common::GUIO_NONE,
+ // Maximum directory depth
1,
+ // List of directory globs
0
};
diff --git a/engines/toon/detection.cpp b/engines/toon/detection.cpp
index 4b8c987d1e..f8c4c08ce6 100644
--- a/engines/toon/detection.cpp
+++ b/engines/toon/detection.cpp
@@ -112,13 +112,21 @@ static const char * const directoryGlobs[] = {
};
static const ADParams detectionParams = {
+ // Pointer to ADGameDescription or its superset structure
(const byte *)Toon::gameDescriptions,
+ // Size of that superset structure
sizeof(ADGameDescription),
- 5000, // number of md5 bytes
+ // Number of bytes to compute MD5 sum for
+ 5000,
+ // List of all engine targets
ToonGames,
- 0, // no obsolete targets data
+ // Structure for autoupgrading obsolete targets
+ 0,
+ // Name of single gameid (optional)
"toon",
+ // List of files for file-based fallback detection (optional)
Toon::fileBasedFallback,
+ // Flags
0,
// Additional GUI options (for every game}
Common::GUIO_NONE,
diff --git a/engines/touche/detection.cpp b/engines/touche/detection.cpp
index 35f03fa657..06d15664a5 100644
--- a/engines/touche/detection.cpp
+++ b/engines/touche/detection.cpp
@@ -130,13 +130,21 @@ static const char *directoryGlobs[] = {
};
static const ADParams detectionParams = {
+ // Pointer to ADGameDescription or its superset structure
(const byte *)Touche::gameDescriptions,
+ // Size of that superset structure
sizeof(ADGameDescription),
- 4096, // number of md5 bytes
+ // Number of bytes to compute MD5 sum for
+ 4096,
+ // List of all engine targets
toucheGames,
- 0, // no obsolete targets data
+ // Structure for autoupgrading obsolete targets
+ 0,
+ // Name of single gameid (optional)
"touche",
- Touche::fileBasedFallback, // file-based detection data to enable not yet known versions to start
+ // List of files for file-based fallback detection (optional)
+ Touche::fileBasedFallback,
+ // Flags
kADFlagPrintWarningOnFileBasedFallback,
// Additional GUI options (for every game}
Common::GUIO_NONE,
diff --git a/engines/tucker/detection.cpp b/engines/tucker/detection.cpp
index 0a9dec9b46..8e22d18e43 100644
--- a/engines/tucker/detection.cpp
+++ b/engines/tucker/detection.cpp
@@ -106,16 +106,27 @@ static const ADGameDescription tuckerGameDescriptions[] = {
};
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
};