[Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.223,2.224 script_v80he.cpp,2.3,2.4
Travis Howell
kirben at users.sourceforge.net
Sun Sep 5 20:27:08 CEST 2004
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31826/scumm
Modified Files:
intern.h script_v80he.cpp
Log Message:
Add another ini related opcode.
Index: intern.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/intern.h,v
retrieving revision 2.223
retrieving revision 2.224
diff -u -d -r2.223 -r2.224
--- intern.h 6 Sep 2004 02:39:02 -0000 2.223
+++ intern.h 6 Sep 2004 03:26:46 -0000 2.224
@@ -779,6 +779,7 @@
/* HE version 80 script opcodes */
void o80_unknown49();
+ void o80_unknown4D();
void o80_setState();
};
Index: script_v80he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v80he.cpp,v
retrieving revision 2.3
retrieving revision 2.4
diff -u -d -r2.3 -r2.4
--- script_v80he.cpp 6 Sep 2004 01:54:24 -0000 2.3
+++ script_v80he.cpp 6 Sep 2004 03:26:47 -0000 2.4
@@ -141,7 +141,7 @@
OPCODE(o72_wordArrayIndexedWrite),
/* 4C */
OPCODE(o6_invalid),
- OPCODE(o6_invalid),
+ OPCODE(o80_unknown4D),
OPCODE(o6_invalid),
OPCODE(o6_wordVarInc),
/* 50 */
@@ -386,6 +386,32 @@
debug(1,"o80_unknown49 stub (%d, %d)", b, a);
}
+void ScummEngine_v80he::o80_unknown4D() {
+ byte option[128], option2[128], option3[256];
+ int type, retval;
+
+ // we pretend that we don't have .ini file
+ copyScriptString(option);
+ copyScriptString(option2);
+ copyScriptString(option3);
+ type = fetchScriptByte();
+
+ switch (type) {
+ case 6: // number
+ push(0);
+ break;
+ case 7: // string
+ defineArray(0, kStringArray, 0, 0, 0, 0);
+ retval = readVar(0);
+ writeArray(0, 0, 0, 0);
+ push(retval); // var ID string
+ break;
+ default:
+ error("o80_unknown4D: default type %d", type);
+ }
+ debug(1, "o80_unknown4D (%d) %s %s %s", type, option, option2, option3);
+}
+
void ScummEngine_v80he::o80_setState() {
int state = pop();
int obj = pop();
More information about the Scummvm-git-logs
mailing list