diff options
| author | Max Horn | 2007-06-15 17:13:13 +0000 | 
|---|---|---|
| committer | Max Horn | 2007-06-15 17:13:13 +0000 | 
| commit | e627cddd19968dcff709518e7d159475249576be (patch) | |
| tree | ea0d5eb0bd71e157df22c3a1a54353082268a2be /base/game.cpp | |
| parent | a5c2c06a974032daa240756b567552c668fe9b90 (diff) | |
| download | scummvm-rg350-e627cddd19968dcff709518e7d159475249576be.tar.gz scummvm-rg350-e627cddd19968dcff709518e7d159475249576be.tar.bz2 scummvm-rg350-e627cddd19968dcff709518e7d159475249576be.zip | |
Added some doxygen comments to (Plain)GameDescriptor, and added a findPlainGameDescriptor convenience function
svn-id: r27422
Diffstat (limited to 'base/game.cpp')
| -rw-r--r-- | base/game.cpp | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/base/game.cpp b/base/game.cpp index 960d9ef9f1..9aaaf3a6af 100644 --- a/base/game.cpp +++ b/base/game.cpp @@ -26,6 +26,16 @@  #include "base/game.h"  #include "base/plugins.h" +const PlainGameDescriptor *findPlainGameDescriptor(const char *gameid, const PlainGameDescriptor *list) { +	const PlainGameDescriptor *g = list; +	while (g->gameid) { +		if (0 == scumm_stricmp(gameid, g->gameid)) +			break; +		g++; +	} +	return g; +} +  void GameDescriptor::updateDesc(const char *extra) {  	// TODO: The format used here (LANG/PLATFORM/EXTRA) is not set in stone.  	// We may want to change the order (PLATFORM/EXTRA/LANG, anybody?), or @@ -58,7 +68,7 @@ void GameDescriptor::updateDesc(const char *extra) {  namespace Base { -// TODO: Find a better place for this function. +// 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(); | 
