diff options
author | Max Horn | 2008-02-02 00:56:02 +0000 |
---|---|---|
committer | Max Horn | 2008-02-02 00:56:02 +0000 |
commit | ec715ea1ecc7ee0d85ed298f75ce0404d10d622b (patch) | |
tree | 796791f6500ad6e986f27d110b9dd38bd1025e62 /engines/parallaction | |
parent | dc979b03cf915ab10a6cf76bdb22f1f95b12612e (diff) | |
download | scummvm-rg350-ec715ea1ecc7ee0d85ed298f75ce0404d10d622b.tar.gz scummvm-rg350-ec715ea1ecc7ee0d85ed298f75ce0404d10d622b.tar.bz2 scummvm-rg350-ec715ea1ecc7ee0d85ed298f75ce0404d10d622b.zip |
Converted parallaction engine to use MetaEngine
svn-id: r30727
Diffstat (limited to 'engines/parallaction')
-rw-r--r-- | engines/parallaction/detection.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/engines/parallaction/detection.cpp b/engines/parallaction/detection.cpp index 68859112dd..b546d7fce6 100644 --- a/engines/parallaction/detection.cpp +++ b/engines/parallaction/detection.cpp @@ -184,7 +184,21 @@ static const Common::ADParams detectionParams = { Common::kADFlagAugmentPreferredTarget }; -static bool Engine_PARALLACTION_createInstance(OSystem *syst, Engine **engine, Common::EncapsulatedADGameDesc encapsulatedDesc) { +class ParallactionMetaEngine : public AdvancedMetaEngine { +public: + ParallactionMetaEngine() : AdvancedMetaEngine(detectionParams) {} + + virtual const char *getName() const { + return "Parallaction engine"; + } + virtual const char *getCopyright() const { + return "Nippon Safes Inc. (C) Dynabyte"; + } + + virtual bool createInstance(OSystem *syst, Engine **engine, const Common::EncapsulatedADGameDesc &encapsulatedDesc) const; +}; + +bool ParallactionMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::EncapsulatedADGameDesc &encapsulatedDesc) const { const Parallaction::PARALLACTIONGameDescription *gd = (const Parallaction::PARALLACTIONGameDescription *)(encapsulatedDesc.realDesc); bool res = true; @@ -203,6 +217,6 @@ static bool Engine_PARALLACTION_createInstance(OSystem *syst, Engine **engine, C return res; } -ADVANCED_DETECTOR_DEFINE_PLUGIN(PARALLACTION, Engine_PARALLACTION_createInstance, detectionParams); +META_COMPATIBLITY_WRAPPER(PARALLACTION, ParallactionMetaEngine); REGISTER_PLUGIN(PARALLACTION, "Parallaction engine", "Nippon Safes Inc. (C) Dynabyte"); |