diff options
author | Max Horn | 2007-06-15 17:44:06 +0000 |
---|---|---|
committer | Max Horn | 2007-06-15 17:44:06 +0000 |
commit | fdafdbbe9cb668ce8951c627771900b69930085d (patch) | |
tree | 45158fcb550bc23161e7f3752f363ef3128b28a8 /engines | |
parent | a0983ff7bbd90bc3f712d5e9da53b4fe3a09fd41 (diff) | |
download | scummvm-rg350-fdafdbbe9cb668ce8951c627771900b69930085d.tar.gz scummvm-rg350-fdafdbbe9cb668ce8951c627771900b69930085d.tar.bz2 scummvm-rg350-fdafdbbe9cb668ce8951c627771900b69930085d.zip |
Made Engine_SCUMM_gameIDList use the convenient GameList(PlainGameDescriptor *) constructor
svn-id: r27427
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/detection.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp index d8cf4556d7..2d260a9908 100644 --- a/engines/scumm/detection.cpp +++ b/engines/scumm/detection.cpp @@ -662,13 +662,7 @@ static bool testGame(const GameSettings *g, const DescMap &fileMD5Map, const Com using namespace Scumm; GameList Engine_SCUMM_gameIDList() { - const PlainGameDescriptor *g = gameDescriptions; - GameList games; - while (g->gameid) { - games.push_back(GameDescriptor(g->gameid, g->description)); - g++; - } - return games; + return GameList(gameDescriptions); } GameDescriptor Engine_SCUMM_findGameID(const char *gameid) { |