diff options
author | Max Horn | 2006-03-09 12:52:54 +0000 |
---|---|---|
committer | Max Horn | 2006-03-09 12:52:54 +0000 |
commit | 6b19677e1d15d7b4f8e1230642e1d1a1fee69907 (patch) | |
tree | c6cc49d3bc28c083ef251db5fa133438b4a412fd | |
parent | 46ee5c8f26b8b53d0c7268a8328edea0b4134611 (diff) | |
download | scummvm-rg350-6b19677e1d15d7b4f8e1230642e1d1a1fee69907.tar.gz scummvm-rg350-6b19677e1d15d7b4f8e1230642e1d1a1fee69907.tar.bz2 scummvm-rg350-6b19677e1d15d7b4f8e1230642e1d1a1fee69907.zip |
Make use of DetectedGame::updateDesc in the kyra & lure engines
svn-id: r21167
-rw-r--r-- | engines/kyra/kyra.cpp | 4 | ||||
-rw-r--r-- | engines/lure/lure.cpp | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp index a7eb7f7d7d..9d1c880b7d 100644 --- a/engines/kyra/kyra.cpp +++ b/engines/kyra/kyra.cpp @@ -181,7 +181,9 @@ DetectedGameList Engine_KYRA_detectGames(const FSList &fslist) { } for (g = kyra_games; g->gameid; g++) { if (strcmp(g->md5sum, (char *)md5str) == 0) { - detectedGames.push_back(DetectedGame(g->gameid, g->description, convertKyraLang(g->features), Common::kPlatformUnknown)); + DetectedGame dg(*g, convertKyraLang(g->features)); + dg.updateDesc(); // Append the language, if set, to the description. + detectedGames.push_back(dg); } } if (detectedGames.isEmpty()) { diff --git a/engines/lure/lure.cpp b/engines/lure/lure.cpp index bb68befdab..64a166765c 100644 --- a/engines/lure/lure.cpp +++ b/engines/lure/lure.cpp @@ -61,7 +61,7 @@ struct LureGameSettings { // static const LureGameSettings lure_games[] = { - { "lure", "Lure of the Temptress (Floppy, English)", GI_LURE, GF_ENGLISH | GF_FLOPPY, + { "lure", "Lure of the Temptress", GI_LURE, GF_ENGLISH | GF_FLOPPY, "e45ea5d279a268c7d3c6524c2f63a2d2", "disk1.vga" }, { 0, 0, 0, 0, 0, 0 } }; @@ -125,7 +125,12 @@ DetectedGameList Engine_LURE_detectGames(const FSList &fslist) { } for (g = lure_games; g->gameid; g++) { if (strcmp(g->md5sum, (char *)md5str) == 0) { - detectedGames.push_back(*g); + DetectedGame dg(*g); + if (g->features & GF_ENGLISH) + dg.language = Common::EN_USA; + + dg.updateDesc((g->features & GF_FLOPPY) ? "Floppy" : 0); + detectedGames.push_back(dg); } } if (detectedGames.isEmpty()) { |