diff options
author | Jordi Vilalta Prat | 2008-05-12 00:26:29 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2008-05-12 00:26:29 +0000 |
commit | 2c9968fe80c4ba78f895c9bac757dd6b1604ccce (patch) | |
tree | 863d7b8e84b7ba511b2880ba95e0e8010db79841 /base/game.cpp | |
parent | bb035967442df0f9cb7de3e3da3d73ce2f4ce5d2 (diff) | |
download | scummvm-rg350-2c9968fe80c4ba78f895c9bac757dd6b1604ccce.tar.gz scummvm-rg350-2c9968fe80c4ba78f895c9bac757dd6b1604ccce.tar.bz2 scummvm-rg350-2c9968fe80c4ba78f895c9bac757dd6b1604ccce.zip |
- Added an engine plugin manager and moved engine specific functionality into it
- base/plugins.* reorganization
svn-id: r32045
Diffstat (limited to 'base/game.cpp')
-rw-r--r-- | base/game.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/base/game.cpp b/base/game.cpp index a79cfddec9..9628543672 100644 --- a/base/game.cpp +++ b/base/game.cpp @@ -75,29 +75,3 @@ void SaveStateDescriptor::setThumbnail(Graphics::Surface *t) { } _thumbnail = t; } - - -namespace Base { - -// TODO: Find a better name & place for this function. -GameDescriptor findGame(const Common::String &gameName, const Plugin **plugin) { - // Find the GameDescriptor for this target - const PluginList &plugins = PluginManager::instance().getPlugins(); - GameDescriptor result; - - if (plugin) - *plugin = 0; - - PluginList::const_iterator iter = plugins.begin(); - for (iter = plugins.begin(); iter != plugins.end(); ++iter) { - result = (*iter)->findGame(gameName.c_str()); - if (!result.gameid().empty()) { - if (plugin) - *plugin = *iter; - break; - } - } - return result; -} - -} // End of namespace Base |