aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/detection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/teenagent/detection.cpp')
-rw-r--r--engines/teenagent/detection.cpp35
1 files changed, 4 insertions, 31 deletions
diff --git a/engines/teenagent/detection.cpp b/engines/teenagent/detection.cpp
index 5012e6af65..72a338664b 100644
--- a/engines/teenagent/detection.cpp
+++ b/engines/teenagent/detection.cpp
@@ -79,37 +79,14 @@ static const ADGameDescription teenAgentGameDescriptions[] = {
AD_TABLE_END_MARKER,
};
-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
+enum {
+ MAX_SAVES = 20
};
-#define MAX_SAVES 20
-
-
class TeenAgentMetaEngine : public AdvancedMetaEngine {
public:
- TeenAgentMetaEngine() : AdvancedMetaEngine(detectionParams) {
+ TeenAgentMetaEngine() : AdvancedMetaEngine(teenAgentGameDescriptions, sizeof(ADGameDescription), teenAgentGames) {
+ _singleid = "teenagent";
}
virtual const char *getName() const {
@@ -140,10 +117,6 @@ public:
return desc != 0;
}
-// virtual const ADGameDescription *fallbackDetect(const Common::FSList &fslist) const {
-// return 0;
-// }
-
static Common::String generateGameStateFileName(const char *target, int slot) {
return Common::String::format("%s.%02d", target, slot);
}