diff options
author | Torbjörn Andersson | 2003-11-23 13:40:24 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-11-23 13:40:24 +0000 |
commit | 509235e176837799ee86cf58302f4f9b48c60cbb (patch) | |
tree | ef60242d818ca822c90f273edd5e08e4b63a1234 /sword2/interpreter.cpp | |
parent | cc0da575530d0b873d6fd0c2ee125f0373a37b42 (diff) | |
download | scummvm-rg350-509235e176837799ee86cf58302f4f9b48c60cbb.tar.gz scummvm-rg350-509235e176837799ee86cf58302f4f9b48c60cbb.tar.bz2 scummvm-rg350-509235e176837799ee86cf58302f4f9b48c60cbb.zip |
Added experimental (i.e. not tested) resource dumping code.
Added tentative workaround for the bug (a script bug, I think) that causes
the game to hang when examining the lift at the top of the pyramid.
And, of course, some misc. cleanup.
svn-id: r11359
Diffstat (limited to 'sword2/interpreter.cpp')
-rw-r--r-- | sword2/interpreter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sword2/interpreter.cpp b/sword2/interpreter.cpp index d8550c9fe8..f6fde1b095 100644 --- a/sword2/interpreter.cpp +++ b/sword2/interpreter.cpp @@ -18,6 +18,7 @@ */ #include "common/stdafx.h" +#include "common/util.h" #include "sword2/sword2.h" #include "sword2/interpreter.h" @@ -193,6 +194,9 @@ void Logic::setupOpcodes(void) { int32 Logic::executeOpcode(int i, int32 *params) { OpcodeProc op = _opcodes[i].proc; + + debug(5, "%s", _opcodes[i].desc); + return (this->*op) (params); } @@ -315,8 +319,6 @@ int Logic::runScript(char *scriptData, char *objectData, uint32 *offset) { assert(parameter <= MAX_FN_NUMBER); // amount to adjust stack by (no of parameters) Read8ip(value); - debug(5, "Call mcode %d with stack = %x", parameter, stack2 + stackPointer2 - value); - retVal = executeOpcode(parameter, stack2 + stackPointer2 - value); stackPointer2 -= value; |