[Scummvm-cvs-logs] CVS: tools descumm3.cpp,1.10,1.11
James Brown
ender at users.sourceforge.net
Sun Nov 10 10:03:01 CET 2002
Update of /cvsroot/scummvm/tools
In directory usw-pr-cvs1:/tmp/cvs-serv15306
Modified Files:
descumm3.cpp
Log Message:
Some more indy3 updates
Index: descumm3.cpp
===================================================================
RCS file: /cvsroot/scummvm/tools/descumm3.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- descumm3.cpp 10 Nov 2002 11:28:11 -0000 1.10
+++ descumm3.cpp 10 Nov 2002 18:02:35 -0000 1.11
@@ -107,7 +107,7 @@
int get_curpos();
-
+int gameFlag;
bool emit_if(char *before, char *after);
#if defined(SCUMM_BIG_ENDIAN)
@@ -1638,7 +1638,13 @@
do_tok(buf, "WaitForActor", ((opcode & 0x80) ? A1V : A1B));
break;
case 0xAE:{
- switch (opcode = get_byte()) {
+ byte opcode;
+ if (gameFlag == 1)
+ opcode = 2;
+ else
+ opcode = get_byte();
+
+ switch (opcode) {
case 0x01:
case 0x81:
do_tok(buf, "WaitForActor", ((opcode & 0x80) ? A1V : A1B));
@@ -2060,6 +2066,7 @@
"Syntax:\n"
"\tdescumm [-o] filename\n"
"Flags:\n"
+ "\t-3\tUse Indy3-256 specific hacks\n"
"\t-o\tAlways Show offsets\n"
"\t-i\tDon't output ifs\n"
"\t-e\tDon't output else\n"
@@ -2101,7 +2108,7 @@
char *s;
filename = NULL;
-
+ gameFlag = 0;
/* Parse the arguments */
for (i = 1; i < argc; i++) {
s = argv[i];
@@ -2110,6 +2117,9 @@
s++;
while (*s) {
switch (tolower(*s)) {
+ case '3':
+ gameFlag = 1;
+ break;
case 'o':
AlwaysShowOffs = 1;
break;
More information about the Scummvm-git-logs
mailing list