aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2011-06-10 15:53:56 +0200
committerMax Horn2011-06-10 22:15:45 +0200
commit3c0c14b4b50d253d8f318335c8fa99cfbb3e013b (patch)
tree1c15d80f297a5069349692a2335f7b436bd9f4ce /engines
parentfc555635cf2a64e6ac274550734949bb551b239f (diff)
downloadscummvm-rg350-3c0c14b4b50d253d8f318335c8fa99cfbb3e013b.tar.gz
scummvm-rg350-3c0c14b4b50d253d8f318335c8fa99cfbb3e013b.tar.bz2
scummvm-rg350-3c0c14b4b50d253d8f318335c8fa99cfbb3e013b.zip
TESTBED: Switch to alternate AdvancedMetaEngine, avoid ADParams
Diffstat (limited to 'engines')
-rw-r--r--engines/testbed/detection.cpp29
1 files changed, 3 insertions, 26 deletions
diff --git a/engines/testbed/detection.cpp b/engines/testbed/detection.cpp
index 6a40b24858..2c3d5b43c5 100644
--- a/engines/testbed/detection.cpp
+++ b/engines/testbed/detection.cpp
@@ -45,34 +45,11 @@ static const ADGameDescription testbedDescriptions[] = {
AD_TABLE_END_MARKER
};
-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 gameid
- testbed_setting,
- // Structure for autoupgrading obsolete gameids
- 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
-};
-
class TestbedMetaEngine : public AdvancedMetaEngine {
public:
- TestbedMetaEngine() : AdvancedMetaEngine(detectionParams) {
+ TestbedMetaEngine() : AdvancedMetaEngine(testbedDescriptions, sizeof(ADGameDescription), testbed_setting) {
+ params.md5Bytes = 512;
+ params.singleid = "testbed";
}
virtual const char *getName() const {