[Scummvm-cvs-logs] SF.net SVN: scummvm:[52541] scummvm/trunk/engines/sci/engine/ static_selectors.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sun Sep 5 12:59:45 CEST 2010


Revision: 52541
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52541&view=rev
Author:   thebluegr
Date:     2010-09-05 10:59:44 +0000 (Sun, 05 Sep 2010)

Log Message:
-----------
SCI: Some cleanup of the static selector code

- Added more static selectors, for debugging
- Added some needed selectors for the non-interactive demo of Pepper

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/static_selectors.cpp

Modified: scummvm/trunk/engines/sci/engine/static_selectors.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/static_selectors.cpp	2010-09-05 10:55:25 UTC (rev 52540)
+++ scummvm/trunk/engines/sci/engine/static_selectors.cpp	2010-09-05 10:59:44 UTC (rev 52541)
@@ -98,7 +98,6 @@
 #endif
 
 static const SelectorRemap sciSelectorRemap[] = {
-	{    SCI_VERSION_0_EARLY,     SCI_VERSION_1_LATE,     "-info-",   2 },
 	{    SCI_VERSION_0_EARLY,     SCI_VERSION_0_LATE,   "moveDone", 170 },
 	{    SCI_VERSION_0_EARLY,     SCI_VERSION_0_LATE,     "points", 316 },
 	{    SCI_VERSION_0_EARLY,     SCI_VERSION_0_LATE,      "flags", 368 },
@@ -107,7 +106,6 @@
 	{    SCI_VERSION_1_EARLY,     SCI_VERSION_1_LATE,  "topString", 101 },
 	{    SCI_VERSION_1_EARLY,     SCI_VERSION_1_LATE,      "flags", 102 },
 	// SCI1.1
-	{        SCI_VERSION_1_1,        SCI_VERSION_2_1,     "-info-",4103 },
 	{        SCI_VERSION_1_1,        SCI_VERSION_1_1,    "nodePtr",  41 },
 	{        SCI_VERSION_1_1,        SCI_VERSION_1_1, "cantBeHere",  54 },
 	{        SCI_VERSION_1_1,        SCI_VERSION_1_1,  "topString",  98 },
@@ -121,6 +119,7 @@
 	{        SCI_VERSION_1_1,        SCI_VERSION_1_1,   "maxScale", 106 },
 	{        SCI_VERSION_1_1,        SCI_VERSION_1_1, "vanishingX", 107 },
 	{        SCI_VERSION_1_1,        SCI_VERSION_1_1, "vanishingY", 108 },
+	{        SCI_VERSION_1_1,        SCI_VERSION_2_1,     "-info-",4103 },
 	{ SCI_VERSION_NONE,             SCI_VERSION_NONE,            0,   0 }
 };
 
@@ -136,8 +135,12 @@
 
 	// Resize the list of selector names and fill in the SCI 0 names.
 	names.resize(count);
-	for (int i = 0; i < offset; i++)
-		names[i].clear();
+	if (getSciVersion() < SCI_VERSION_1_1) {
+		// Fill selectors 0 - 2 for SCI0 - SCI1 late
+		names[0] = "species";
+		names[1] = "superClass";
+		names[2] = "-info-";
+	}
 
 	if (getSciVersion() <= SCI_VERSION_1_1) {
 		// SCI0 - SCI11
@@ -185,6 +188,8 @@
 					names.resize((uint32)initSelectorPos + 1);
 
 				names[initSelectorPos] = "init";
+				// dispose comes right after init
+				names[initSelectorPos + 1] = "dispose";
 
 				if ((getSciVersion() >= SCI_VERSION_1_EGA)) {
 					// Find the xLast and yLast selectors, used in kDoBresen
@@ -246,6 +251,13 @@
 
 			names[274] = "syncTime";
 			names[275] = "syncCue";
+		} else if (g_sci->getGameId() == GID_PEPPER) {
+			// Same as above for the non-interactive demo of Pepper
+			if (names.size() < 265)
+				names.resize(265);
+
+			names[263] = "syncTime";
+			names[264] = "syncCue";
 		} else if (g_sci->getGameId() == GID_LAURABOW2) {
 			// The floppy of version needs the changeState selector set to match up with the
 			// CD version's workarounds.


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