diff options
-rw-r--r-- | scumm/intern.h | 2 | ||||
-rw-r--r-- | scumm/script_v72he.cpp | 13 | ||||
-rw-r--r-- | scumm/script_v80he.cpp | 2 | ||||
-rw-r--r-- | scumm/script_v90he.cpp | 2 |
4 files changed, 10 insertions, 9 deletions
diff --git a/scumm/intern.h b/scumm/intern.h index 6878bf2432..9b5d9ea17f 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -747,7 +747,7 @@ protected: void o72_unknownED(); void o72_unknownEF(); void o72_unknownF1(); - void o72_unknownF2(); + void o72_checkGlobQueue(); void o72_readINI(); void o72_writeINI(); void o72_unknownF4(); diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index 16ac57f9eb..48a3e0262b 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -347,7 +347,7 @@ void ScummEngine_v72he::setupOpcodes() { /* F0 */ OPCODE(o6_invalid), OPCODE(o72_unknownF1), - OPCODE(o72_unknownF2), + OPCODE(o72_checkGlobQueue), OPCODE(o72_readINI), /* F4 */ OPCODE(o72_writeINI), @@ -1700,11 +1700,12 @@ void ScummEngine_v72he::o72_unknownF1() { push(-1); } -void ScummEngine_v72he::o72_unknownF2() { - int a = pop(); - int b = pop(); - debug(1,"o7_unknownF2 stub (%d, %d)", b, a); - push(-1); +void ScummEngine_v72he::o72_checkGlobQueue() { + int subOp = fetchScriptByte(); + int idx = pop(); + + debug(1,"o72_checkGlobQueue stub (%d, %d)", subOp, idx); + push(100); } void ScummEngine_v72he::o72_readINI() { diff --git a/scumm/script_v80he.cpp b/scumm/script_v80he.cpp index 9c30005eb8..cf9337ba2f 100644 --- a/scumm/script_v80he.cpp +++ b/scumm/script_v80he.cpp @@ -347,7 +347,7 @@ void ScummEngine_v80he::setupOpcodes() { /* F0 */ OPCODE(o6_invalid), OPCODE(o72_unknownF1), - OPCODE(o72_unknownF2), + OPCODE(o72_checkGlobQueue), OPCODE(o72_readINI), /* F4 */ OPCODE(o72_writeINI), diff --git a/scumm/script_v90he.cpp b/scumm/script_v90he.cpp index 0699940c6f..42e6d33fd6 100644 --- a/scumm/script_v90he.cpp +++ b/scumm/script_v90he.cpp @@ -347,7 +347,7 @@ void ScummEngine_v90he::setupOpcodes() { /* F0 */ OPCODE(o6_invalid), OPCODE(o72_unknownF1), - OPCODE(o72_unknownF2), + OPCODE(o72_checkGlobQueue), OPCODE(o72_readINI), /* F4 */ OPCODE(o72_writeINI), |