[Scummvm-cvs-logs] scummvm master -> 1163a83f3587f5ceef41f7c2c429c30e2e8b6887

tramboi bertrand_augereau at yahoo.fr
Mon Sep 5 21:17:50 CEST 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:
1163a83f35 DREAMWEB: Ported 'showryanpage' to C++


Commit: 1163a83f3587f5ceef41f7c2c429c30e2e8b6887
    https://github.com/scummvm/scummvm/commit/1163a83f3587f5ceef41f7c2c429c30e2e8b6887
Author: Bertrand Augereau (bertrand_augereau at yahoo.fr)
Date: 2011-09-05T12:12:14-07:00

Commit Message:
DREAMWEB: Ported 'showryanpage' 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 9427664..2193954 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -188,6 +188,7 @@ generator = cpp(context, "DreamGen", blacklist = [
 	'isitworn',
 	'makeworn',
 	'obtoinv',
+	'showryanpage',
 	], skip_output = [
 	# These functions are processed but not output
 	'dreamweb',
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 3ee8c79..a03aa62 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -4101,30 +4101,6 @@ void DreamGenContext::openinv() {
 	data.byte(kCommandtype) = 255;
 }
 
-void DreamGenContext::showryanpage() {
-	STACK_CHECK;
-	ds = data.word(kIcons1);
-	di = (80)+167;
-	bx = (58)-12;
-	al = 12;
-	ah = 0;
-	showframe();
-	al = 13;
-	_add(al, data.byte(kRyanpage));
-	push(ax);
-	al = data.byte(kRyanpage);
-	ah = 0;
-	cx = 18;
-	_mul(cx);
-	ds = data.word(kIcons1);
-	di = (80)+167;
-	_add(di, ax);
-	bx = (58)-12;
-	ax = pop();
-	ah = 0;
-	showframe();
-}
-
 void DreamGenContext::openob() {
 	STACK_CHECK;
 	al = data.byte(kOpenedob);
@@ -17313,7 +17289,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
 		case addr_getbackfromob: getbackfromob(); break;
 		case addr_incryanpage: incryanpage(); break;
 		case addr_openinv: openinv(); break;
-		case addr_showryanpage: showryanpage(); break;
 		case addr_openob: openob(); break;
 		case addr_examicon: examicon(); break;
 		case addr_describeob: describeob(); break;
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index 68e7b65..6c62e9b 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -488,7 +488,6 @@ public:
 	static const uint16 addr_describeob = 0xc364;
 	static const uint16 addr_examicon = 0xc35c;
 	static const uint16 addr_openob = 0xc354;
-	static const uint16 addr_showryanpage = 0xc350;
 	static const uint16 addr_openinv = 0xc34c;
 	static const uint16 addr_incryanpage = 0xc348;
 	static const uint16 addr_getbackfromob = 0xc344;
@@ -1949,7 +1948,7 @@ public:
 	//void drawflags();
 	void zoomonoff();
 	void updatesymboltop();
-	void showryanpage();
+	//void showryanpage();
 	void printlogo();
 	void allpointer();
 	void showseconduse();
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 394de96..8985392 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -1816,5 +1816,11 @@ void DreamGenContext::obtoinv(uint8 index, uint8 flag, uint16 x, uint16 y) {
 		showframe(icons1, x - 3, y - 2, 7, 0);
 }
 
+void DreamGenContext::showryanpage() {
+	Frame *icons1 = (Frame *)segRef(data.word(kIcons1)).ptr(0, 0);
+	showframe(icons1, kInventx + 167, kInventy - 12, 12, 0);
+	showframe(icons1, kInventx + 167 + 18 * data.byte(kRyanpage), kInventy - 12, 13 + data.byte(kRyanpage), 0);
+}
+
 } /*namespace dreamgen */
 
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index 70ba5f7..10cb2e8 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -226,4 +226,5 @@
 	void makeworn(DynObject *object);
 	void obtoinv();
 	void obtoinv(uint8 index, uint8 flag, uint16 x, uint16 y);
+	void showryanpage();
 






More information about the Scummvm-git-logs mailing list