[Scummvm-cvs-logs] scummvm master -> c51e97c51702a48b35b5ee4e226e82d65d3000cf

digitall digitall at scummvm.org
Mon Dec 5 19:51:34 CET 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c51e97c517 DREAMWEB: 'intro' ported to C++


Commit: c51e97c51702a48b35b5ee4e226e82d65d3000cf
    https://github.com/scummvm/scummvm/commit/c51e97c51702a48b35b5ee4e226e82d65d3000cf
Author: D G Turner (digitall at scummvm.org)
Date: 2011-12-05T10:50:34-08:00

Commit Message:
DREAMWEB: 'intro' ported to C++

Changed paths:
    devtools/tasmrecover/tasm-recover
    engines/dreamweb/dreamgen.cpp
    engines/dreamweb/dreamgen.h
    engines/dreamweb/stubs.cpp
    engines/dreamweb/stubs.h



diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover
index 327ee9c..9ee8268 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -304,6 +304,7 @@ generator = cpp(context, "DreamGen", blacklist = [
 	'initman',
 	'initrain',
 	'input',
+	'intro',
 	'inventory',
 	'isitdescribed',
 	'isitright',
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 3ea063a..635aecf 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -2396,54 +2396,6 @@ void DreamGenContext::gettingShot() {
 	clearBeforeLoad();
 }
 
-void DreamGenContext::intro() {
-	STACK_CHECK;
-	dx = 1035;
-	loadTempText();
-	loadPalFromIFF();
-	setMode();
-	data.byte(kNewlocation) = 50;
-	clearPalette();
-	loadIntroRoom();
-	data.byte(kVolume) = 7;
-	data.byte(kVolumedirection) = -1;
-	data.byte(kVolumeto) = 4;
-	al = 12;
-	ah = 255;
-	playChannel0();
-	fadeScreenUps();
-	runIntroSeq();
-	_cmp(data.byte(kLasthardkey), 1);
-	if (flags.z())
-		goto introearly;
-	clearBeforeLoad();
-	data.byte(kNewlocation) = 52;
-	loadIntroRoom();
-	runIntroSeq();
-	_cmp(data.byte(kLasthardkey), 1);
-	if (flags.z())
-		goto introearly;
-	clearBeforeLoad();
-	data.byte(kNewlocation) = 53;
-	loadIntroRoom();
-	runIntroSeq();
-	_cmp(data.byte(kLasthardkey), 1);
-	if (flags.z())
-		goto introearly;
-	clearBeforeLoad();
-	allPalette();
-	data.byte(kNewlocation) = 54;
-	loadIntroRoom();
-	runIntroSeq();
-	_cmp(data.byte(kLasthardkey), 1);
-	if (flags.z())
-		goto introearly;
-	getRidOfTempText();
-	clearBeforeLoad();
-introearly:
-	data.byte(kLasthardkey) =  0;
-}
-
 void DreamGenContext::runIntroSeq() {
 	STACK_CHECK;
 	data.byte(kGetback) = 0;
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index 1895d6e..475f20a 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -578,7 +578,6 @@ public:
 	void introMonks1();
 	void resetLocation();
 	void introMonks2();
-	void advisor();
 	void additionalText();
 	void useElevator5();
 	void useElevator4();
@@ -660,7 +659,7 @@ public:
 	void lockLightOff();
 	void wearWatch();
 	void runIntroSeq();
-	void nextColon();
+	void advisor();
 	void attendant();
 	void monks2text();
 	void clearPalette();
@@ -669,6 +668,7 @@ public:
 	void openHotelDoor();
 	void blank();
 	void drinker();
+	void nextColon();
 	void placeFreeObject();
 	void allPalette();
 	void adjustRight();
@@ -878,7 +878,6 @@ public:
 	void inToInv();
 	void parser();
 	void setMouse();
-	void intro();
 	void fadeScreenDowns();
 	void openHotelDoor2();
 	void selectLocation();
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 9c879eb..ab28503 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -3336,5 +3336,61 @@ void DreamGenContext::realCredits() {
 	data.byte(kLasthardkey) =  0;
 }
 
+void DreamGenContext::intro() {
+	loadTempText("DREAMWEB.T82");
+	loadPalFromIFF();
+	setMode();
+	data.byte(kNewlocation) = 50;
+	clearPalette();
+	loadIntroRoom();
+	data.byte(kVolume) = 7;
+	data.byte(kVolumedirection) = -1;
+	data.byte(kVolumeto) = 4;
+	playChannel0(12, 255);
+	fadeScreenUps();
+	runIntroSeq();
+
+	if (data.byte(kLasthardkey) == 1) {
+		data.byte(kLasthardkey) =  0;
+		return; // "introearly"
+	}
+
+	clearBeforeLoad();
+	data.byte(kNewlocation) = 52;
+	loadIntroRoom();
+	runIntroSeq();
+
+	if (data.byte(kLasthardkey) == 1) {
+		data.byte(kLasthardkey) =  0;
+		return; // "introearly"
+	}
+
+	clearBeforeLoad();
+	data.byte(kNewlocation) = 53;
+	loadIntroRoom();
+	runIntroSeq();
+
+	if (data.byte(kLasthardkey) == 1) {
+		data.byte(kLasthardkey) =  0;
+		return; // "introearly"
+	}
+
+	clearBeforeLoad();
+	allPalette();
+	data.byte(kNewlocation) = 54;
+	loadIntroRoom();
+	runIntroSeq();
+
+	if (data.byte(kLasthardkey) == 1) {
+		data.byte(kLasthardkey) =  0;
+		return; // "introearly"
+	}
+
+	getRidOfTempText();
+	clearBeforeLoad();
+
+	data.byte(kLasthardkey) =  0;
+}
+
 } /*namespace dreamgen */
 
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index 36b9ca6..8ee093d 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -453,5 +453,6 @@
 	void showPCX();
 	void bibleQuote();
 	void realCredits();
+	void intro();
 
 #endif






More information about the Scummvm-git-logs mailing list