[Scummvm-cvs-logs] SF.net SVN: scummvm: [31640] scummvm/trunk/engines/made

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Mon Apr 21 10:51:25 CEST 2008


Revision: 31640
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31640&view=rev
Author:   Kirben
Date:     2008-04-21 01:51:25 -0700 (Mon, 21 Apr 2008)

Log Message:
-----------
Add detection of the Return to Zork demo.

Modified Paths:
--------------
    scummvm/trunk/engines/made/detection.cpp
    scummvm/trunk/engines/made/made.cpp
    scummvm/trunk/engines/made/made.h

Modified: scummvm/trunk/engines/made/detection.cpp
===================================================================
--- scummvm/trunk/engines/made/detection.cpp	2008-04-21 07:29:35 UTC (rev 31639)
+++ scummvm/trunk/engines/made/detection.cpp	2008-04-21 08:51:25 UTC (rev 31640)
@@ -71,7 +71,7 @@
 static const MadeGameDescription gameDescriptions[] = {
 
 	{
-		// Made English version
+		// Return to Zork - English CD version
 		{
 			"made",
 			"CD",
@@ -86,6 +86,22 @@
 		0,
 	},
 
+	{
+		// Return to Zork - Demo
+		{
+			"made",
+			"Demo",
+			AD_ENTRY1("demo.dat", "2a6a1354bd5346fad4aee08e5b56caaa"),
+			Common::EN_ANY,
+			Common::kPlatformPC,
+			Common::ADGF_DEMO
+		},
+		0,
+		0,
+		GF_DEMO,
+		0,
+	},
+
 	{ AD_TABLE_END_MARKER, 0, 0, 0, 0 }
 };
 

Modified: scummvm/trunk/engines/made/made.cpp
===================================================================
--- scummvm/trunk/engines/made/made.cpp	2008-04-21 07:29:35 UTC (rev 31639)
+++ scummvm/trunk/engines/made/made.cpp	2008-04-21 08:51:25 UTC (rev 31640)
@@ -138,8 +138,13 @@
 	for (int i = 0; i < ARRAYSIZE(_timers); i++)
 		_timers[i] = -1;
 
-	_dat->open("rtzcd.dat");
-	_res->open("rtzcd.prj");
+	if (getFeatures() & GF_DEMO) {
+		_dat->open("demo.dat");
+		_res->open("demo.prj");
+	} else {
+		_dat->open("rtzcd.dat");
+		_res->open("rtzcd.prj");
+	}
 
 	PictureResource *flex1 = _res->getPicture(78);
 	Graphics::Surface *surf = flex1->getPicture();

Modified: scummvm/trunk/engines/made/made.h
===================================================================
--- scummvm/trunk/engines/made/made.h	2008-04-21 07:29:35 UTC (rev 31639)
+++ scummvm/trunk/engines/made/made.h	2008-04-21 08:51:25 UTC (rev 31640)
@@ -48,6 +48,7 @@
 namespace Made {
 
 enum MadeGameFeatures {
+	GF_DEMO = 1 << 0
 };
 
 struct MadeGameDescription;


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