diff options
author | Max Horn | 2006-02-18 11:15:37 +0000 |
---|---|---|
committer | Max Horn | 2006-02-18 11:15:37 +0000 |
commit | 8ac17430ac7aa3bba5630d74a1eeda54bce7801b (patch) | |
tree | 5c3a57c00428e599f43edde027ff3ff87475ceb9 /engines/queen | |
parent | d0e637f7aa5c23ef66a4a5685bba8aecd58e14a7 (diff) | |
download | scummvm-rg350-8ac17430ac7aa3bba5630d74a1eeda54bce7801b.tar.gz scummvm-rg350-8ac17430ac7aa3bba5630d74a1eeda54bce7801b.tar.bz2 scummvm-rg350-8ac17430ac7aa3bba5630d74a1eeda54bce7801b.zip |
- renamed PLUGIN_getSupportedGames to PLUGIN_gameIDList for consistency
- renamed Engine_XXX_gameList to Engine_XXX_gameList for consistency
- added new Engine_XXX_findGameID / PLUGIN_findGameID function
- updated plugins code to take advantage of the new plugin API, to support
obsolete gameids w/o showing them to the user
svn-id: r20752
Diffstat (limited to 'engines/queen')
-rw-r--r-- | engines/queen/queen.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/engines/queen/queen.cpp b/engines/queen/queen.cpp index d7f3a80491..a5833d017b 100644 --- a/engines/queen/queen.cpp +++ b/engines/queen/queen.cpp @@ -62,17 +62,20 @@ static const GameSettings queen_setting[] = { { 0, 0 } }; -GameList Engine_QUEEN_gameList() { +GameList Engine_QUEEN_gameIDList() { GameList games; - const GameSettings *g = queen_setting; - - while (g->gameid) { - games.push_back(*g); - g++; - } + games.push_back(queen_setting[0]); return games; } +GameSettings Engine_QUEEN_findGameID(const char *gameid) { + if (0 == strcmp(gameid, queen_setting[0].gameid)) + return queen_setting[0]; + GameSettings dummy = { 0, 0 }; + return dummy; +} + + GameSettings determineTarget(uint32 size) { switch (size) { case 3724538: //regular demo |