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/saga/saga.cpp | |
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/saga/saga.cpp')
-rw-r--r-- | engines/saga/saga.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp index 38b0a91250..9ed9c0f854 100644 --- a/engines/saga/saga.cpp +++ b/engines/saga/saga.cpp @@ -56,7 +56,7 @@ #include "saga/objectmap.h" #include "saga/resnames.h" -static const GameSettings saga_games[] = { +static const PlainGameDescriptor saga_games[] = { {"ite", "Inherit the Earth"}, {"ihnm", "I Have No Mouth and I Must Scream"}, {0, 0} @@ -64,7 +64,7 @@ static const GameSettings saga_games[] = { GameList Engine_SAGA_gameIDList() { GameList games; - const GameSettings *g = saga_games; + const PlainGameDescriptor *g = saga_games; while (g->gameid) { games.push_back(*g); @@ -74,8 +74,8 @@ GameList Engine_SAGA_gameIDList() { return games; } -GameSettings Engine_SAGA_findGameID(const char *gameid) { - const GameSettings *g = saga_games; +GameDescriptor Engine_SAGA_findGameID(const char *gameid) { + const PlainGameDescriptor *g = saga_games; while (g->gameid) { if (0 == scumm_stricmp(gameid, g->gameid)) break; |