From 865d8717a3270f3b913a3fbfa64bcfc5ca746db4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 19 Dec 2006 22:43:15 +0000 Subject: * 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 --- base/game.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'base') 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 GameList; +class GameList : public Common::Array { +public: + GameList() {} + GameList(const GameList &list) : Common::Array(list) {} + GameList(const PlainGameDescriptor *g) { + while (g->gameid) { + push_back(*g); + g++; + } + } +}; -- cgit v1.2.3