diff options
author | Max Horn | 2008-02-03 18:56:47 +0000 |
---|---|---|
committer | Max Horn | 2008-02-03 18:56:47 +0000 |
commit | 8a73356a2d6e2d6b7ecefb53e0d5e82484f0e697 (patch) | |
tree | 7a5fbed1f61904961fad43411f65d8e174955f2c /engines/metaengine.h | |
parent | 15975bdf7324a8b892562768fe73b6e17816d56f (diff) | |
download | scummvm-rg350-8a73356a2d6e2d6b7ecefb53e0d5e82484f0e697.tar.gz scummvm-rg350-8a73356a2d6e2d6b7ecefb53e0d5e82484f0e697.tar.bz2 scummvm-rg350-8a73356a2d6e2d6b7ecefb53e0d5e82484f0e697.zip |
Revised Engine plugin API to only provide a single func which returns a MetaEngine instance. Used this to simplify the rest of the plugin system
svn-id: r30780
Diffstat (limited to 'engines/metaengine.h')
-rw-r--r-- | engines/metaengine.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/engines/metaengine.h b/engines/metaengine.h index 600968331d..b0b71de126 100644 --- a/engines/metaengine.h +++ b/engines/metaengine.h @@ -57,25 +57,4 @@ public: virtual PluginError createInstance(OSystem *syst, Engine **engine) const = 0; }; - -/** - * The META_COMPATIBILITY_WRAPPER macro is there to ease the transition from the - * old plugin API to the new MetaEngine class. Ultimately, this macro will go - * and REGISTER_PLUGIN will be changed to simply take an ID and a METACLASS. - * Until then, use META_COMPATIBILITY_WRAPPER + REGISTER_PLUGIN. - */ -#define META_COMPATIBILITY_WRAPPER(ID,METACLASS) \ - static MetaEngine &getMetaEngine() { \ - static MetaEngine *meta = 0; \ - if (!meta) meta = new METACLASS(); \ - return *meta; \ - } \ - GameList Engine_##ID##_gameIDList() { return getMetaEngine().getSupportedGames(); } \ - GameDescriptor Engine_##ID##_findGameID(const char *gameid) { return getMetaEngine().findGame(gameid); } \ - PluginError Engine_##ID##_create(OSystem *syst, Engine **engine) { return getMetaEngine().createInstance(syst, engine); } \ - GameList Engine_##ID##_detectGames(const FSList &fslist) { return getMetaEngine().detectGames(fslist); } \ - void dummyFuncToAllowTrailingSemicolon() - - - #endif |