aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/detection.cpp
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/gob/detection.cpp
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/gob/detection.cpp')
-rw-r--r--engines/gob/detection.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/engines/gob/detection.cpp b/engines/gob/detection.cpp
index cbf0b99fd9..96e16516ad 100644
--- a/engines/gob/detection.cpp
+++ b/engines/gob/detection.cpp
@@ -1742,7 +1742,22 @@ static const ADParams detectionParams = {
kADFlagAugmentPreferredTarget
};
-static bool Engine_GOB_createInstance(OSystem *syst, Engine **engine, Common::EncapsulatedADGameDesc encapsulatedDesc) {
+class GobMetaEngine : public AdvancedMetaEngine {
+public:
+ GobMetaEngine() : AdvancedMetaEngine(detectionParams) {}
+
+ virtual const char *getName() const {
+ return "Gob Engine";
+ }
+
+ virtual const char *getCopyright() const {
+ return "Goblins Games (C) Coktel Vision";
+ }
+
+ virtual bool createInstance(OSystem *syst, Engine **engine, const Common::EncapsulatedADGameDesc &encapsulatedDesc) const;
+};
+
+bool GobMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::EncapsulatedADGameDesc &encapsulatedDesc) const {
const Gob::GOBGameDescription *gd = (const Gob::GOBGameDescription *)(encapsulatedDesc.realDesc);
if (gd) {
*engine = new Gob::GobEngine(syst);
@@ -1751,7 +1766,7 @@ static bool Engine_GOB_createInstance(OSystem *syst, Engine **engine, Common::En
return gd != 0;
}
-ADVANCED_DETECTOR_DEFINE_PLUGIN(GOB, Engine_GOB_createInstance, detectionParams);
+META_COMPATIBLITY_WRAPPER(GOB, GobMetaEngine);
REGISTER_PLUGIN(GOB, "Gob Engine", "Goblins Games (C) Coktel Vision");