From 8a73356a2d6e2d6b7ecefb53e0d5e82484f0e697 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 3 Feb 2008 18:56:47 +0000 Subject: 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 --- engines/metaengine.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'engines/metaengine.h') 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 -- cgit v1.2.3