diff options
author | Filippos Karapetis | 2010-06-09 07:32:17 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-06-09 07:32:17 +0000 |
commit | 10aeb33a4253b5df05f19a9bfabc3cc374db096c (patch) | |
tree | e24eb291ae199a8cacdedcc0191f92e0e7b18d66 /engines/sci/engine/scriptdebug.cpp | |
parent | b494d46fdde717bf877c1422026038c3c9fed5f4 (diff) | |
download | scummvm-rg350-10aeb33a4253b5df05f19a9bfabc3cc374db096c.tar.gz scummvm-rg350-10aeb33a4253b5df05f19a9bfabc3cc374db096c.tar.bz2 scummvm-rg350-10aeb33a4253b5df05f19a9bfabc3cc374db096c.zip |
Merged restAdjust and restAdjustCur, as we don't save the restAdjust modifier inside saved games (rightfully so). Also, the segment manager is now reset inside the main loop, when the game is restarted, not in game_exit()
svn-id: r49533
Diffstat (limited to 'engines/sci/engine/scriptdebug.cpp')
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index b465ab3d4e..159c278e8c 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -205,12 +205,12 @@ reg_t disassemble(EngineState *s, reg_t pos, int print_bw_tag, int print_bytecod if (pos == s->xs->addr.pc) { // Extra information if debugging the current opcode if (opcode == op_callk) { - int stackframe = (scr[pos.offset + 2] >> 1) + (s->restAdjustCur); + int stackframe = (scr[pos.offset + 2] >> 1) + (s->restAdjust); int argc = ((s->xs->sp)[- stackframe - 1]).offset; bool oldScriptHeader = (getSciVersion() == SCI_VERSION_0_EARLY); if (!oldScriptHeader) - argc += (s->restAdjustCur); + argc += (s->restAdjust); printf(" Kernel params: ("); @@ -221,7 +221,7 @@ reg_t disassemble(EngineState *s, reg_t pos, int print_bw_tag, int print_bytecod } printf(")\n"); } else if ((opcode == op_send) || (opcode == op_self)) { - int restmod = s->restAdjustCur; + int restmod = s->restAdjust; int stackframe = (scr[pos.offset + 1] >> 1) + restmod; reg_t *sb = s->xs->sp; uint16 selector; |