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/gob | |
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/gob')
-rw-r--r-- | engines/gob/gob.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/gob/gob.cpp b/engines/gob/gob.cpp index 8c1793ea94..b1d8ea0783 100644 --- a/engines/gob/gob.cpp +++ b/engines/gob/gob.cpp @@ -118,7 +118,7 @@ static const GobGameSettings gob_games[] = { }; // Keep list of different supported games -static const GameSettings gob_list[] = { +static const PlainGameDescriptor gob_list[] = { {"gob1", "Gobliiins"}, {"gob2", "Gobliins 2"}, {0, 0} @@ -275,7 +275,7 @@ using namespace Gob; GameList Engine_GOB_gameIDList() { GameList games; - const GameSettings *g = gob_list; + const PlainGameDescriptor *g = gob_list; while (g->gameid) { games.push_back(*g); @@ -285,8 +285,8 @@ GameList Engine_GOB_gameIDList() { return games; } -GameSettings Engine_GOB_findGameID(const char *gameid) { - const GameSettings *g = gob_list; +GameDescriptor Engine_GOB_findGameID(const char *gameid) { + const PlainGameDescriptor *g = gob_list; while (g->gameid) { if (0 == scumm_stricmp(gameid, g->gameid)) break; @@ -328,7 +328,7 @@ DetectedGameList Engine_GOB_detectGames(const FSList &fslist) { if (detectedGames.isEmpty()) { printf("Unknown MD5 (%s)! Please report the details (language, platform, etc.) of this game to the ScummVM team\n", md5str); - const GameSettings *g1 = gob_list; + const PlainGameDescriptor *g1 = gob_list; while (g1->gameid) { detectedGames.push_back(*g1); g1++; |