aboutsummaryrefslogtreecommitdiff
path: root/engines/wage
diff options
context:
space:
mode:
authorD G Turner2011-06-11 05:41:07 +0100
committerEugene Sandulenko2015-12-27 15:39:52 +0100
commit30793f99ebf81d64d58248e88877f8f2b04b7b5f (patch)
tree08fdf155d11c400bf8752075b8863d0b10722819 /engines/wage
parent684d5bf7af434c5c104e41fc6a2f107b774171c9 (diff)
downloadscummvm-rg350-30793f99ebf81d64d58248e88877f8f2b04b7b5f.tar.gz
scummvm-rg350-30793f99ebf81d64d58248e88877f8f2b04b7b5f.tar.bz2
scummvm-rg350-30793f99ebf81d64d58248e88877f8f2b04b7b5f.zip
WAGE: Update AdvancedMetaEngine For Removal of ADParams.
Also, fixed incorrect structure naming which likely conflicted i.e. cineGames -> wageGames Signed-off-by: Eugene Sandulenko <sev@scummvm.org>
Diffstat (limited to 'engines/wage')
-rw-r--r--engines/wage/detection.cpp36
1 files changed, 5 insertions, 31 deletions
diff --git a/engines/wage/detection.cpp b/engines/wage/detection.cpp
index 976ec0fee6..e0d40ffdd6 100644
--- a/engines/wage/detection.cpp
+++ b/engines/wage/detection.cpp
@@ -40,7 +40,7 @@ const char *WageEngine::getGameFile() const {
}
-static const PlainGameDescriptor cineGames[] = {
+static const PlainGameDescriptor wageGames[] = {
{"afm", "Another Fine Mess"},
{"wage", "World Adventure Game Engine game"},
{0, 0}
@@ -66,38 +66,12 @@ static const ADGameDescription gameDescriptions[] = {
} // End of namespace Wage
-static const char *directoryGlobs[] = {
- 0
-};
-
-static const ADParams detectionParams = {
- // Pointer to ADGameDescription or its superset structure
- (const byte *)Wage::gameDescriptions,
- // Size of that superset structure
- sizeof(ADGameDescription),
- // Number of bytes to compute MD5 sum for
- 5000,
- // List of all engine targets
- cineGames,
- // Structure for autoupgrading obsolete targets
- 0,
- // Name of single gameid (optional)
- "wage",
- // 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
- 0,
- // List of directory globs
- directoryGlobs
-};
-
class WageMetaEngine : public AdvancedMetaEngine {
public:
- WageMetaEngine() : AdvancedMetaEngine(detectionParams) {}
+ WageMetaEngine() : AdvancedMetaEngine(Wage::gameDescriptions, sizeof(ADGameDescription), wageGames) {
+ params.singleid = "wage";
+ params.guioptions = Common::GUIO_NOSPEECH | Common::GUIO_NOMIDI;
+ }
virtual const char *getName() const {
return "World Adventure Game Engine";