diff options
author | Eugene Sandulenko | 2006-10-02 23:31:14 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-10-02 23:31:14 +0000 |
commit | 107a9f3bef2265415df0d6c1e1d255161eeca193 (patch) | |
tree | b09cae85691c0ef37110c780e34cc81202041941 /engines/saga/game.cpp | |
parent | 60aee54bfefc492b19f6c50a2040f182bab3bdda (diff) | |
download | scummvm-rg350-107a9f3bef2265415df0d6c1e1d255161eeca193.tar.gz scummvm-rg350-107a9f3bef2265415df0d6c1e1d255161eeca193.tar.bz2 scummvm-rg350-107a9f3bef2265415df0d6c1e1d255161eeca193.zip |
Moved unrelated fields out of ADGameDescription structure.
svn-id: r24090
Diffstat (limited to 'engines/saga/game.cpp')
-rw-r--r-- | engines/saga/game.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/saga/game.cpp b/engines/saga/game.cpp index ab42f730b9..3f3ba177bc 100644 --- a/engines/saga/game.cpp +++ b/engines/saga/game.cpp @@ -112,11 +112,11 @@ using Common::ADGameDescription; #include "sagagame.cpp" -DetectedGame toDetectedGame(const ADGameDescription &g) { +DetectedGame toDetectedGame(const SAGAGameDescription &g) { const char *title; title = saga_games[g.gameType].description; - DetectedGame dg(g.name, title, g.language, g.platform); - dg.updateDesc(g.extra); + DetectedGame dg(g.desc.name, title, g.desc.language, g.desc.platform); + dg.updateDesc(g.desc.extra); return dg; } @@ -162,7 +162,7 @@ bool SagaEngine::initGame() { error("SagaEngine::loadGame wrong gameNumber"); } - _gameTitle = toDetectedGame(gameDescriptions[gameNumber].desc).description; + _gameTitle = toDetectedGame(gameDescriptions[gameNumber]).description; debug(2, "Running %s", _gameTitle.c_str()); _gameNumber = gameNumber; @@ -192,7 +192,7 @@ DetectedGameList GAME_detectGames(const FSList &fslist) { matches = AdvDetector.detectGame(&fslist, Common::UNK_LANG, Common::kPlatformUnknown); for (uint i = 0; i < matches.size(); i++) - detectedGames.push_back(toDetectedGame(gameDescriptions[matches[i]].desc)); + detectedGames.push_back(toDetectedGame(gameDescriptions[matches[i]])); //delete matches; return detectedGames; |