diff options
author | Max Horn | 2011-06-10 15:53:56 +0200 |
---|---|---|
committer | Max Horn | 2011-06-10 22:15:45 +0200 |
commit | fc555635cf2a64e6ac274550734949bb551b239f (patch) | |
tree | 35e519e1451f8993bd5c842ef8c40aad5f447a38 /engines | |
parent | 43f301d4c76cf1d303c71f3114d0f66e39264a95 (diff) | |
download | scummvm-rg350-fc555635cf2a64e6ac274550734949bb551b239f.tar.gz scummvm-rg350-fc555635cf2a64e6ac274550734949bb551b239f.tar.bz2 scummvm-rg350-fc555635cf2a64e6ac274550734949bb551b239f.zip |
TEENAGENT: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines')
-rw-r--r-- | engines/teenagent/detection.cpp | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/engines/teenagent/detection.cpp b/engines/teenagent/detection.cpp index 5eb332f97b..b684560bc7 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 gameid - teenAgentGames, - // Structure for autoupgrading obsolete gameids - 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) { + params.singleid = "teenagent"; } virtual const char *getName() const { |