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

tramboi bertrand_augereau at yahoo.fr
Tue Nov 15 09:06:15 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:
e2ca95c5ad DREAMWEB: 'showwatch' ported to C++


Commit: e2ca95c5add8d2f68a48e44541fc42f364045294
    https://github.com/scummvm/scummvm/commit/e2ca95c5add8d2f68a48e44541fc42f364045294
Author: Bertrand Augereau (bertrand_augereau at yahoo.fr)
Date: 2011-11-15T02:05:30-08:00

Commit Message:
DREAMWEB: 'showwatch' 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 ba631a8..145c4bb 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -205,7 +205,8 @@ generator = cpp(context, "DreamGen", blacklist = [
 	'wornerror',
 	'getpersframe',
 	'convicons',
-	'examineob'
+	'examineob',
+	'showwatch',
 	], skip_output = [
 	# These functions are processed but not output
 	'dreamweb',
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 24968bd..86ef9c4 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -14639,20 +14639,6 @@ zoomisoff:
 	showwatch();
 }
 
-void DreamGenContext::showwatch() {
-	STACK_CHECK;
-	_cmp(data.byte(kWatchon), 0);
-	if (flags.z())
-		return /* (nowristwatch) */;
-	ds = data.word(kIcons1);
-	di = 250;
-	bx = 1;
-	al = 6;
-	ah = 0;
-	showframe();
-	showtime();
-}
-
 void DreamGenContext::zoomicon() {
 	STACK_CHECK;
 	_cmp(data.byte(kZoomon), 0);
@@ -16875,7 +16861,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
 		case addr_usetempcharset: usetempcharset(); break;
 		case addr_showexit: showexit(); break;
 		case addr_panelicons1: panelicons1(); break;
-		case addr_showwatch: showwatch(); break;
 		case addr_gettime: gettime(); break;
 		case addr_zoomicon: zoomicon(); break;
 		case addr_worktoscreenm: worktoscreenm(); break;
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index e74f68c..1368a53 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -89,7 +89,6 @@ public:
 	static const uint16 addr_worktoscreenm = 0xca9c;
 	static const uint16 addr_zoomicon = 0xca90;
 	static const uint16 addr_gettime = 0xca8c;
-	static const uint16 addr_showwatch = 0xca88;
 	static const uint16 addr_panelicons1 = 0xca84;
 	static const uint16 addr_showexit = 0xca80;
 	static const uint16 addr_usetempcharset = 0xca7c;
@@ -1262,7 +1261,7 @@ public:
 	//void frameoutbh();
 	void getobtextstart();
 	void loadfolder();
-	void decide();
+	void dumpdiarykeys();
 	//void dumppointer();
 	void reelsonscreen();
 	void getridofreels();
@@ -1420,7 +1419,7 @@ public:
 	void getridoftemp2();
 	void usebalcony();
 	void runendseq();
-	void dumpdiarykeys();
+	void decide();
 	void disablesoundint();
 	void priesttext();
 	//void showallex();
@@ -1797,7 +1796,7 @@ public:
 	void checkinside();
 	void gates();
 	void newgame();
-	void showwatch();
+	//void showwatch();
 	//void turnanypathon();
 	void restorereels();
 	void setwalk();
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 4f956d3..85f620b 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -1952,6 +1952,12 @@ void DreamGenContext::mainscreen() {
 		walkandexamine();
 }
 
+void DreamGenContext::showwatch() {
+	if (data.byte(kWatchon)) {
+		showframe((Frame *)segRef(data.word(kIcons1)).ptr(0, 0), 250, 1, 6, 0);
+		showtime();
+	}
+}
 
 } /*namespace dreamgen */
 
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index 1ced8ea..510cc3d 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -250,4 +250,5 @@
 	uint16 getpersframe(uint8 index);
 	void convicons();
 	void examineob(bool examineAgain = true);
+	void showwatch();
 






More information about the Scummvm-git-logs mailing list