From 2bb39e591f4184f0ae8102c8f547586bf95d2b50 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 13 May 2008 10:41:32 +0000 Subject: Moved the engine plugin code to engines/metaengine.h; added/clarified/corrected various Doxygen comments for the plugin system svn-id: r32083 --- engines/metaengine.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'engines/metaengine.h') diff --git a/engines/metaengine.h b/engines/metaengine.h index 5db791a1b7..c5fb006faa 100644 --- a/engines/metaengine.h +++ b/engines/metaengine.h @@ -93,4 +93,25 @@ public: } }; + +// Engine plugins + +typedef PluginSubclass EnginePlugin; + +/** + * Singleton class which manages all Engine plugins. + */ +class EngineManager : public Common::Singleton { +private: + friend class Common::Singleton; + +public: + GameDescriptor findGame(const Common::String &gameName, const EnginePlugin **plugin = NULL) const; + GameList detectGames(const FSList &fslist) const; + const EnginePlugin::list &getPlugins() const; +}; + +/** Convenience shortcut for accessing the engine manager. */ +#define EngineMan EngineManager::instance() + #endif -- cgit v1.2.3