[Scummvm-cvs-logs] scummvm master -> 214cff8db8253759d2dd358273b8e1b83c141169

tramboi bertrand_augereau at yahoo.fr
Mon Sep 5 16:40:41 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:
214cff8db8 DREAMWEB: 'dumpeverything' is useless


Commit: 214cff8db8253759d2dd358273b8e1b83c141169
    https://github.com/scummvm/scummvm/commit/214cff8db8253759d2dd358273b8e1b83c141169
Author: Bertrand Augereau (bertrand_augereau at yahoo.fr)
Date: 2011-09-01T23:12:33-07:00

Commit Message:
DREAMWEB: 'dumpeverything' is useless

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



diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover
index e3a232e..3e04ddd 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -184,6 +184,7 @@ generator = cpp(context, "DreamGen", blacklist = [
 	'checkifset',
 	'checkifpathison',
 	'delsprite',
+	'dumpeverything',
 	], skip_output = [
 	# These functions are processed but not output
 	'dreamweb',
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 44400ec..0fd6ae1 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -2552,64 +2552,6 @@ bigroom:
 	_add(data.byte(kMapysize), 8);
 }
 
-void DreamGenContext::dumpeverything() {
-	STACK_CHECK;
-	es = data.word(kBuffers);
-	bx = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40));
-dumpevery1:
-	ax = es.word(bx);
-	cx = es.word(bx+2);
-	_cmp(ax, 0x0ffff);
-	if (flags.z())
-		goto finishevery1;
-	_cmp(ax, es.word(bx+(40*5)));
-	if (!flags.z())
-		goto notskip1;
-	_cmp(cx, es.word(bx+(40*5)+2));
-	if (flags.z())
-		goto skip1;
-notskip1:
-	push(bx);
-	push(es);
-	push(ds);
-	bl = ah;
-	bh = 0;
-	ah = 0;
-	di = ax;
-	_add(di, data.word(kMapadx));
-	_add(bx, data.word(kMapady));
-	multidump();
-	ds = pop();
-	es = pop();
-	bx = pop();
-skip1:
-	_add(bx, 5);
-	goto dumpevery1;
-finishevery1:
-	bx = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40))+(40*5);
-dumpevery2:
-	ax = es.word(bx);
-	cx = es.word(bx+2);
-	_cmp(ax, 0x0ffff);
-	if (flags.z())
-		return /* (finishevery2) */;
-	push(bx);
-	push(es);
-	push(ds);
-	bl = ah;
-	bh = 0;
-	ah = 0;
-	di = ax;
-	_add(di, data.word(kMapadx));
-	_add(bx, data.word(kMapady));
-	multidump();
-	ds = pop();
-	es = pop();
-	bx = pop();
-	_add(bx, 5);
-	goto dumpevery2;
-}
-
 void DreamGenContext::loadpalfromiff() {
 	STACK_CHECK;
 	dx = 2481;
@@ -17384,7 +17326,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
 		case addr_soundonreels: soundonreels(); break;
 		case addr_reconstruct: reconstruct(); break;
 		case addr_deleverything: deleverything(); break;
-		case addr_dumpeverything: dumpeverything(); break;
 		case addr_showpcx: showpcx(); break;
 		case addr_loadpalfromiff: loadpalfromiff(); break;
 		case addr_setmode: setmode(); break;
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index ae6887c..c8dc192 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -555,7 +555,6 @@ public:
 	static const uint16 addr_setmode = 0xc1dc;
 	static const uint16 addr_loadpalfromiff = 0xc1d8;
 	static const uint16 addr_showpcx = 0xc1cc;
-	static const uint16 addr_dumpeverything = 0xc1c4;
 	static const uint16 addr_deleverything = 0xc1c0;
 	static const uint16 addr_reconstruct = 0xc1ac;
 	static const uint16 addr_soundonreels = 0xc1a8;
@@ -1611,7 +1610,7 @@ public:
 	void examinventory();
 	void talk();
 	void usedryer();
-	void dumpeverything();
+	//void dumpeverything();
 	//void readmouse2();
 	//void zoom();
 	void outofinv();






More information about the Scummvm-git-logs mailing list