diff options
author | Max Horn | 2006-03-09 01:42:56 +0000 |
---|---|---|
committer | Max Horn | 2006-03-09 01:42:56 +0000 |
commit | d2f78184af00cd91f3f1f251199a436b53f4ae64 (patch) | |
tree | 140adfdc6fd1ae851a1093d4e2cf8056ae361b52 /engines/cine/cine.cpp | |
parent | 0d4b1a2c8579b88f7ddcf252ab4a317fd6d2576b (diff) | |
download | scummvm-rg350-d2f78184af00cd91f3f1f251199a436b53f4ae64.tar.gz scummvm-rg350-d2f78184af00cd91f3f1f251199a436b53f4ae64.tar.bz2 scummvm-rg350-d2f78184af00cd91f3f1f251199a436b53f4ae64.zip |
- added new toDetectedGame() template function (analog to toGameSettings)
- made use of the new DetectedGame constructor from my last commit
- some related cleanup
svn-id: r21149
Diffstat (limited to 'engines/cine/cine.cpp')
-rw-r--r-- | engines/cine/cine.cpp | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/engines/cine/cine.cpp b/engines/cine/cine.cpp index 69b1c3af78..d6256debf9 100644 --- a/engines/cine/cine.cpp +++ b/engines/cine/cine.cpp @@ -75,19 +75,12 @@ static const CINEGameSettings cine_settings[] = { {NULL, NULL, 0, 0, NULL} }; -// Keep list of different supported games -static const GameSettings cine_list[] = { - {"fw", "Future Wars"}, - {"os", "Operation Stealth"}, - {0, 0} -}; - GameList Engine_CINE_gameIDList() { GameList games; - const GameSettings *g = cine_list; + const CINEGameSettings *g = cine_settings; - while (g->gameid) { - games.push_back(*g); + while (g->name) { + games.push_back(g->toGameSettings()); g++; } @@ -95,13 +88,13 @@ GameList Engine_CINE_gameIDList() { } GameSettings Engine_CINE_findGameID(const char *gameid) { - const GameSettings *g = cine_list; - while (g->gameid) { - if (0 == scumm_stricmp(gameid, g->gameid)) + const CINEGameSettings *g = cine_settings; + while (g->name) { + if (0 == scumm_stricmp(gameid, g->name)) break; g++; } - return *g; + return g->toGameSettings(); } DetectedGameList Engine_CINE_detectGames(const FSList &fslist) { |