[Scummvm-cvs-logs] SF.net SVN: scummvm: [26340] scummvm/trunk/engines/parallaction

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Sun Apr 1 14:42:32 CEST 2007


Revision: 26340
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26340&view=rev
Author:   peres001
Date:     2007-04-01 05:42:30 -0700 (Sun, 01 Apr 2007)

Log Message:
-----------
Added GF_DEMO flag and ability to load the correct location at start.

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

Modified: scummvm/trunk/engines/parallaction/defs.h
===================================================================
--- scummvm/trunk/engines/parallaction/defs.h	2007-04-01 12:17:38 UTC (rev 26339)
+++ scummvm/trunk/engines/parallaction/defs.h	2007-04-01 12:42:30 UTC (rev 26340)
@@ -144,6 +144,10 @@
 	kDebugInput = 1 << 6
 };
 
+enum {
+	GF_DEMO = 1 << 0
+};
+
 } // namespace Parallaction
 
 

Modified: scummvm/trunk/engines/parallaction/detection.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/detection.cpp	2007-04-01 12:17:38 UTC (rev 26339)
+++ scummvm/trunk/engines/parallaction/detection.cpp	2007-04-01 12:42:30 UTC (rev 26340)
@@ -90,7 +90,7 @@
 			Common::ADGF_DEMO
 		},
 		GType_Nippon,
-		0,
+		GF_DEMO,
 	},
 
 

Modified: scummvm/trunk/engines/parallaction/parallaction.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction.cpp	2007-04-01 12:17:38 UTC (rev 26339)
+++ scummvm/trunk/engines/parallaction/parallaction.cpp	2007-04-01 12:42:30 UTC (rev 26340)
@@ -189,7 +189,12 @@
 	_location._startFrame = 0;
 	_location._walkNodes._prev = NULL;
 	_location._walkNodes._next = NULL;
-	strcpy(_location._name, "fogne");
+
+	if (getFeatures() & GF_DEMO)
+		strcpy(_location._name, "fognedemo");
+	else
+		strcpy(_location._name, "fogne");
+
 	_location._aCommands = NULL;
 	_location._commands = NULL;
 	_location._comment = NULL;
@@ -820,7 +825,8 @@
 	else
 		_vm->_char._ani._cnv = _vm->_char._normalFrames;
 
-	parseLocation("common");
+	if (!(getFeatures() & GF_DEMO))
+		parseLocation("common");
 
 	strcpy(_characterName1, v32);
 


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