diff options
author | Max Horn | 2006-03-09 02:52:51 +0000 |
---|---|---|
committer | Max Horn | 2006-03-09 02:52:51 +0000 |
commit | 86565fcca57454e91124410cfd6864ef1e202dc0 (patch) | |
tree | 83cc82217179d56f23836628520b7f63b4a0607d /engines/lure | |
parent | d2f78184af00cd91f3f1f251199a436b53f4ae64 (diff) | |
download | scummvm-rg350-86565fcca57454e91124410cfd6864ef1e202dc0.tar.gz scummvm-rg350-86565fcca57454e91124410cfd6864ef1e202dc0.tar.bz2 scummvm-rg350-86565fcca57454e91124410cfd6864ef1e202dc0.zip |
- Renamed GameSettings to PlainGameDescriptor
- Added new GameDescriptor struct (similar to PlainGameDescriptor but with
Common::String members instead of const char * ones)
- Changed DetectedGame to subclass GameDescriptor
- Removed toGameSettings() in favor of new (template) constructors in
DetectedGame and GameDescriptor
- Fixed a bug in the obsolete gameid handling in the SCUMM & SIMON engines
svn-id: r21150
Diffstat (limited to 'engines/lure')
-rw-r--r-- | engines/lure/lure.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/lure/lure.cpp b/engines/lure/lure.cpp index 165a3bc15e..bb68befdab 100644 --- a/engines/lure/lure.cpp +++ b/engines/lure/lure.cpp @@ -68,14 +68,14 @@ static const LureGameSettings lure_games[] = { // Keep list of different supported games -static const GameSettings lure_list[] = { +static const PlainGameDescriptor lure_list[] = { { "lure", "Lure of the Temptress" }, { 0, 0 } }; GameList Engine_LURE_gameIDList() { GameList games; - const GameSettings *g = lure_list; + const PlainGameDescriptor *g = lure_list; while (g->gameid) { games.push_back(*g); @@ -84,8 +84,8 @@ GameList Engine_LURE_gameIDList() { return games; } -GameSettings Engine_LURE_findGameID(const char *gameid) { - const GameSettings *g = lure_list; +GameDescriptor Engine_LURE_findGameID(const char *gameid) { + const PlainGameDescriptor *g = lure_list; while (g->gameid) { if (0 == scumm_stricmp(gameid, g->gameid)) break; @@ -125,13 +125,13 @@ DetectedGameList Engine_LURE_detectGames(const FSList &fslist) { } for (g = lure_games; g->gameid; g++) { if (strcmp(g->md5sum, (char *)md5str) == 0) { - detectedGames.push_back(toDetectedGame(*g)); + detectedGames.push_back(*g); } } if (detectedGames.isEmpty()) { debug("Unknown MD5 (%s)! Please report the details (language, platform, etc.) of this game to the ScummVM team\n", md5str); - const GameSettings *g1 = lure_list; + const PlainGameDescriptor *g1 = lure_list; while (g1->gameid) { detectedGames.push_back(*g1); g1++; |