aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress
diff options
context:
space:
mode:
authorMax Horn2011-06-10 15:53:53 +0200
committerMax Horn2011-06-10 22:15:42 +0200
commit2bbaf0339e0f9ac4f592b1f9c414516057859015 (patch)
tree35fbda5bb8bb0a317e30613c12ec5e558afcfeba /engines/lastexpress
parenta29bc37eee030533bafbae32a253f2ad8dabadde (diff)
downloadscummvm-rg350-2bbaf0339e0f9ac4f592b1f9c414516057859015.tar.gz
scummvm-rg350-2bbaf0339e0f9ac4f592b1f9c414516057859015.tar.bz2
scummvm-rg350-2bbaf0339e0f9ac4f592b1f9c414516057859015.zip
LASTEXPRESS: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines/lastexpress')
-rw-r--r--engines/lastexpress/detection.cpp30
1 files changed, 4 insertions, 26 deletions
diff --git a/engines/lastexpress/detection.cpp b/engines/lastexpress/detection.cpp
index e85ec41420..d8b98bbbf2 100644
--- a/engines/lastexpress/detection.cpp
+++ b/engines/lastexpress/detection.cpp
@@ -176,35 +176,13 @@ static const ADGameDescription gameDescriptions[] = {
AD_TABLE_END_MARKER
};
-static const ADParams detectionParams = {
- // Pointer to ADGameDescription or its superset structure
- (const byte *)gameDescriptions,
- // Size of that superset structure
- sizeof(ADGameDescription),
- // Number of bytes to compute MD5 sum for
- 5000,
- // List of all engine gameid
- lastExpressGames,
- // Structure for autoupgrading obsolete gameids
- 0,
- // Name of single gameid (optional)
- "lastexpress",
- // List of files for file-based fallback detection (optional)
- 0,
- // Flags
- 0,
- // Additional GUI options (for every game}
- Common::GUIO_NOSUBTITLES | Common::GUIO_NOSFX,
- // Maximum directory depth
- 1,
- // List of directory globs
- 0
-};
-
class LastExpressMetaEngine : public AdvancedMetaEngine {
public:
- LastExpressMetaEngine() : AdvancedMetaEngine(detectionParams) {}
+ LastExpressMetaEngine() : AdvancedMetaEngine(gameDescriptions, sizeof(ADGameDescription), lastExpressGames) {
+ params.singleid = "lastexpress";
+ params.guioptions = Common::GUIO_NOSUBTITLES | Common::GUIO_NOSFX;
+ }
const char *getName() const {
return "Lastexpress";