aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorJordi Vilalta Prat2008-02-02 02:35:13 +0000
committerJordi Vilalta Prat2008-02-02 02:35:13 +0000
commit5165ff448d2329e3a27948fd73821f314eeb520d (patch)
tree620819d618796744f3917d70c6d484b07debd266 /engines/lure
parentec715ea1ecc7ee0d85ed298f75ce0404d10d622b (diff)
downloadscummvm-rg350-5165ff448d2329e3a27948fd73821f314eeb520d.tar.gz
scummvm-rg350-5165ff448d2329e3a27948fd73821f314eeb520d.tar.bz2
scummvm-rg350-5165ff448d2329e3a27948fd73821f314eeb520d.zip
Converted the remaining engines to use MetaEngine
svn-id: r30728
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/detection.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/engines/lure/detection.cpp b/engines/lure/detection.cpp
index 0675e5ea4b..9c3303f620 100644
--- a/engines/lure/detection.cpp
+++ b/engines/lure/detection.cpp
@@ -174,7 +174,22 @@ static const Common::ADParams detectionParams = {
Common::kADFlagAugmentPreferredTarget | Common::kADFlagUseExtraAsHint
};
-static bool Engine_LURE_createInstance(OSystem *syst, Engine **engine, Common::EncapsulatedADGameDesc encapsulatedDesc) {
+class LureMetaEngine : public AdvancedMetaEngine {
+public:
+ LureMetaEngine() : AdvancedMetaEngine(detectionParams) {}
+
+ virtual const char *getName() const {
+ return "Lure of the Temptress Engine";
+ }
+
+ virtual const char *getCopyright() const {
+ return "Lure of the Temptress (C) Revolution";
+ }
+
+ virtual bool createInstance(OSystem *syst, Engine **engine, const Common::EncapsulatedADGameDesc &encapsulatedDesc) const;
+};
+
+bool LureMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::EncapsulatedADGameDesc &encapsulatedDesc) const {
const Lure::LureGameDescription *gd = (const Lure::LureGameDescription *)(encapsulatedDesc.realDesc);
if (gd) {
*engine = new Lure::LureEngine(syst, gd);
@@ -182,6 +197,6 @@ static bool Engine_LURE_createInstance(OSystem *syst, Engine **engine, Common::E
return gd != 0;
}
-ADVANCED_DETECTOR_DEFINE_PLUGIN(LURE, Engine_LURE_createInstance, detectionParams);
+META_COMPATIBLITY_WRAPPER(LURE, LureMetaEngine);
REGISTER_PLUGIN(LURE, "Lure of the Temptress Engine", "Lure of the Temptress (C) Revolution");