diff options
author | Max Horn | 2006-12-19 22:43:15 +0000 |
---|---|---|
committer | Max Horn | 2006-12-19 22:43:15 +0000 |
commit | 865d8717a3270f3b913a3fbfa64bcfc5ca746db4 (patch) | |
tree | 1535c5152fe6d28068a06e290793398b25582f07 /base | |
parent | cd46b0d57d709956b34a4ae37a87ee4767a7986f (diff) | |
download | scummvm-rg350-865d8717a3270f3b913a3fbfa64bcfc5ca746db4.tar.gz scummvm-rg350-865d8717a3270f3b913a3fbfa64bcfc5ca746db4.tar.bz2 scummvm-rg350-865d8717a3270f3b913a3fbfa64bcfc5ca746db4.zip |
* Change the GameList typedef to a proper class with an additional
constructor which takes a PlainGameDescriptor 'list'
* Replaced real_ADVANCED_DETECTOR_GAMEID_LIST by this new constructor
* Removed ADVANCED_DETECTOR_GAMEID_LIST and ADVANCED_DETECTOR_FIND_GAMEID
* Some minor cleanup
svn-id: r24893
Diffstat (limited to 'base')
-rw-r--r-- | base/game.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/base/game.h b/base/game.h index cb95f1730e..eca0050c51 100644 --- a/base/game.h +++ b/base/game.h @@ -55,7 +55,17 @@ struct GameDescriptor { }; /** List of games. */ -typedef Common::Array<GameDescriptor> GameList; +class GameList : public Common::Array<GameDescriptor> { +public: + GameList() {} + GameList(const GameList &list) : Common::Array<GameDescriptor>(list) {} + GameList(const PlainGameDescriptor *g) { + while (g->gameid) { + push_back(*g); + g++; + } + } +}; |