aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hugo/detection.cpp28
1 files changed, 2 insertions, 26 deletions
diff --git a/engines/hugo/detection.cpp b/engines/hugo/detection.cpp
index 29f5d9e6f2..f70a21aa8f 100644
--- a/engines/hugo/detection.cpp
+++ b/engines/hugo/detection.cpp
@@ -131,34 +131,10 @@ static const HugoGameDescription gameDescriptions[] = {
{AD_TABLE_END_MARKER, kGameTypeNone}
};
-static const ADParams detectionParams = {
- // Pointer to ADGameDescription or its superset structure
- (const byte *)gameDescriptions,
- // Size of that superset structure
- sizeof(HugoGameDescription),
- // Number of bytes to compute MD5 sum for
- 5000,
- // List of all engine gameid
- hugoGames,
- // Structure for autoupgrading obsolete gameids
- 0,
- // Name of single gameid (optional)
- 0,
- // 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 HugoMetaEngine : public AdvancedMetaEngine {
public:
- HugoMetaEngine() : AdvancedMetaEngine(detectionParams) {}
+ HugoMetaEngine() : AdvancedMetaEngine(gameDescriptions, sizeof(HugoGameDescription), hugoGames) {
+ }
const char *getName() const {
return "Hugo";