aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs
diff options
context:
space:
mode:
authorDavid Turner2011-06-11 04:28:42 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:11 +0100
commiteb0b7c957fc811e8d43ad2a38711c5bb3d6ba5b6 (patch)
tree3bbc361aad9ff18cec277109dea5c340628d5326 /engines/toltecs
parent3967da03efe714abe1940c8a0c74b20918fa0fd5 (diff)
downloadscummvm-rg350-eb0b7c957fc811e8d43ad2a38711c5bb3d6ba5b6.tar.gz
scummvm-rg350-eb0b7c957fc811e8d43ad2a38711c5bb3d6ba5b6.tar.bz2
scummvm-rg350-eb0b7c957fc811e8d43ad2a38711c5bb3d6ba5b6.zip
TOLTECS: Update AdvancedMetaEngine For Removal of ADParams.
Diffstat (limited to 'engines/toltecs')
-rw-r--r--engines/toltecs/detection.cpp29
1 files changed, 3 insertions, 26 deletions
diff --git a/engines/toltecs/detection.cpp b/engines/toltecs/detection.cpp
index 50d605dbdc..2e6e0523dc 100644
--- a/engines/toltecs/detection.cpp
+++ b/engines/toltecs/detection.cpp
@@ -140,34 +140,11 @@ static const ToltecsGameDescription gameDescriptions[] = {
} // End of namespace Toltecs
-static const ADParams detectionParams = {
- // Pointer to ADGameDescription or its superset structure
- (const byte *)Toltecs::gameDescriptions,
- // Size of that superset structure
- sizeof(Toltecs::ToltecsGameDescription),
- // Number of bytes to compute MD5 sum for
- 5000,
- // List of all engine targets
- toltecsGames,
- // Structure for autoupgrading obsolete targets
- 0,
- // Name of single gameid (optional)
- "toltecs",
- // 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
-};
-
class ToltecsMetaEngine : public AdvancedMetaEngine {
public:
- ToltecsMetaEngine() : AdvancedMetaEngine(detectionParams) {}
+ ToltecsMetaEngine() : AdvancedMetaEngine(Toltecs::gameDescriptions, sizeof(Toltecs::ToltecsGameDescription), toltecsGames) {
+ params.singleid = "toltecs";
+ }
virtual const char *getName() const {
return "Toltecs Engine";