[Scummvm-cvs-logs] SF.net SVN: scummvm: [28580] scummvm/trunk/engines/gob

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Mon Aug 13 09:55:47 CEST 2007


Revision: 28580
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28580&view=rev
Author:   Kirben
Date:     2007-08-13 00:55:47 -0700 (Mon, 13 Aug 2007)

Log Message:
-----------
Add Lost In Time demo.

Modified Paths:
--------------
    scummvm/trunk/engines/gob/detection.cpp
    scummvm/trunk/engines/gob/init.cpp

Modified: scummvm/trunk/engines/gob/detection.cpp
===================================================================
--- scummvm/trunk/engines/gob/detection.cpp	2007-08-13 03:38:23 UTC (rev 28579)
+++ scummvm/trunk/engines/gob/detection.cpp	2007-08-13 07:55:47 UTC (rev 28580)
@@ -953,8 +953,23 @@
 		kFeaturesCD,
 		"intro"
 	},
+
 	{
 		{
+			"lostintime",
+			"Demo",
+			AD_ENTRY1("demo.stk", "c06f8cc20eb239d4c71f225ce3093edf"),
+			UNK_LANG,
+			kPlatformPC,
+			Common::ADGF_DEMO
+		},
+		kGameTypeLostInTime,
+		kFeaturesNone,
+		"demo"
+	},
+
+	{
+		{
 			"gob3",
 			"",
 			AD_ENTRY1s("intro.stk", "32b0f57f5ae79a9ae97e8011df38af42", 157084),

Modified: scummvm/trunk/engines/gob/init.cpp
===================================================================
--- scummvm/trunk/engines/gob/init.cpp	2007-08-13 03:38:23 UTC (rev 28579)
+++ scummvm/trunk/engines/gob/init.cpp	2007-08-13 07:55:47 UTC (rev 28580)
@@ -68,6 +68,15 @@
 
 	initVideo();
 
+	// The Lost In Time demo uses different file prefix
+	if (_vm->getGameType() == kGameTypeLostInTime) {
+		handle2 = _vm->_dataIO->openData("demo.stk");
+		if (handle2 >= 0) {
+			_vm->_dataIO->closeData(handle2);
+			_vm->_dataIO->openDataFile("demo.stk");
+		}
+	}
+
 	handle2 = _vm->_dataIO->openData("intro.stk");
 	if (handle2 >= 0) {
 		_vm->_dataIO->closeData(handle2);


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