[Scummvm-cvs-logs] SF.net SVN: scummvm: [21167] scummvm/trunk/engines/lure

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Thu Mar 9 04:54:00 CET 2006


Revision: 21167
Author:   fingolfin
Date:     2006-03-09 04:52:54 -0800 (Thu, 09 Mar 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21167&view=rev

Log Message:
-----------
Make use of DetectedGame::updateDesc in the kyra & lure engines

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/kyra.cpp
    scummvm/trunk/engines/lure/lure.cpp
Modified: scummvm/trunk/engines/kyra/kyra.cpp
===================================================================
--- scummvm/trunk/engines/kyra/kyra.cpp	2006-03-09 12:52:10 UTC (rev 21166)
+++ scummvm/trunk/engines/kyra/kyra.cpp	2006-03-09 12:52:54 UTC (rev 21167)
@@ -181,7 +181,9 @@
 		}
 		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()) {

Modified: scummvm/trunk/engines/lure/lure.cpp
===================================================================
--- scummvm/trunk/engines/lure/lure.cpp	2006-03-09 12:52:10 UTC (rev 21166)
+++ scummvm/trunk/engines/lure/lure.cpp	2006-03-09 12:52:54 UTC (rev 21167)
@@ -61,7 +61,7 @@
 
 //
 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 @@
 		}
 		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()) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list