aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2011-06-10 15:53:52 +0200
committerMax Horn2011-06-10 22:15:41 +0200
commitae75b9780c30d641591517862f6b2d60ff51f686 (patch)
treeaa4e28ae8baf1c2521a07afe05945e8b3a497f83
parent8174f7d5215cc7b2d85f66fde56803d25f25796a (diff)
downloadscummvm-rg350-ae75b9780c30d641591517862f6b2d60ff51f686.tar.gz
scummvm-rg350-ae75b9780c30d641591517862f6b2d60ff51f686.tar.bz2
scummvm-rg350-ae75b9780c30d641591517862f6b2d60ff51f686.zip
DRASCULA: Switch to alternate AdvancedMetaEngine, avoid ADParams
-rw-r--r--engines/drascula/detection.cpp30
1 files changed, 4 insertions, 26 deletions
diff --git a/engines/drascula/detection.cpp b/engines/drascula/detection.cpp
index 853c4c7dcb..9494bfa66b 100644
--- a/engines/drascula/detection.cpp
+++ b/engines/drascula/detection.cpp
@@ -266,34 +266,12 @@ static const DrasculaGameDescription gameDescriptions[] = {
} // End of namespace Drascula
-static const ADParams detectionParams = {
- // Pointer to ADGameDescription or its superset structure
- (const byte *)Drascula::gameDescriptions,
- // Size of that superset structure
- sizeof(Drascula::DrasculaGameDescription),
- // Number of bytes to compute MD5 sum for
- 5000,
- // List of all engine gameid
- drasculaGames,
- // Structure for autoupgrading obsolete gameids
- 0,
- // Name of single gameid (optional)
- "drascula",
- // List of files for file-based fallback detection (optional)
- 0,
- // Flags
- 0,
- // Additional GUI options (for every game}
- Common::GUIO_NOMIDI | Common::GUIO_NOLAUNCHLOAD,
- // Maximum directory depth
- 1,
- // List of directory globs
- 0
-};
-
class DrasculaMetaEngine : public AdvancedMetaEngine {
public:
- DrasculaMetaEngine() : AdvancedMetaEngine(detectionParams) {}
+ DrasculaMetaEngine() : AdvancedMetaEngine(Drascula::gameDescriptions, sizeof(Drascula::DrasculaGameDescription), drasculaGames) {
+ params.singleid = "drascula";
+ params.guioptions = Common::GUIO_NOMIDI | Common::GUIO_NOLAUNCHLOAD;
+ }
virtual const char *getName() const {
return "Drascula";