aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2006-12-19 22:43:15 +0000
committerMax Horn2006-12-19 22:43:15 +0000
commit865d8717a3270f3b913a3fbfa64bcfc5ca746db4 (patch)
tree1535c5152fe6d28068a06e290793398b25582f07 /base
parentcd46b0d57d709956b34a4ae37a87ee4767a7986f (diff)
downloadscummvm-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.h12
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++;
+ }
+ }
+};