aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2011-06-10 15:53:51 +0200
committerMax Horn2011-06-10 22:15:41 +0200
commit3c837a39f0e2b45cf357c22a40cd3592f6ab760f (patch)
tree3b67db52308504b3b0265739491fb2dfb1dc79ed
parent58c36801f4a59d8da05c8702637b1cc294625f5b (diff)
downloadscummvm-rg350-3c837a39f0e2b45cf357c22a40cd3592f6ab760f.tar.gz
scummvm-rg350-3c837a39f0e2b45cf357c22a40cd3592f6ab760f.tar.bz2
scummvm-rg350-3c837a39f0e2b45cf357c22a40cd3592f6ab760f.zip
CINE: Switch to alternate AdvancedMetaEngine, avoid ADParams
-rw-r--r--engines/cine/detection.cpp31
1 files changed, 5 insertions, 26 deletions
diff --git a/engines/cine/detection.cpp b/engines/cine/detection.cpp
index 2e6e285df0..89c81c2599 100644
--- a/engines/cine/detection.cpp
+++ b/engines/cine/detection.cpp
@@ -60,34 +60,13 @@ static const ADObsoleteGameID obsoleteGameIDsTable[] = {
#include "cine/detection_tables.h"
-static const ADParams detectionParams = {
- // Pointer to ADGameDescription or its superset structure
- (const byte *)Cine::gameDescriptions,
- // Size of that superset structure
- sizeof(Cine::CINEGameDescription),
- // Number of bytes to compute MD5 sum for
- 5000,
- // List of all engine gameid
- cineGames,
- // Structure for autoupgrading obsolete gameids
- obsoleteGameIDsTable,
- // Name of single gameid (optional)
- "cine",
- // List of files for file-based fallback detection (optional)
- 0,
- // Flags
- 0,
- // Additional GUI options (for every game}
- Common::GUIO_NOSPEECH | Common::GUIO_NOMIDI,
- // Maximum directory depth
- 1,
- // List of directory globs
- 0
-};
-
class CineMetaEngine : public AdvancedMetaEngine {
public:
- CineMetaEngine() : AdvancedMetaEngine(detectionParams) {}
+ CineMetaEngine() : AdvancedMetaEngine(Cine::gameDescriptions, sizeof(Cine::CINEGameDescription), cineGames) {
+ params.obsoleteList = obsoleteGameIDsTable;
+ params.singleid = "cine";
+ params.guioptions = Common::GUIO_NOSPEECH | Common::GUIO_NOMIDI;
+ }
virtual const char *getName() const {
return "Cine";