diff options
author | Filippos Karapetis | 2009-07-07 10:28:05 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-07-07 10:28:05 +0000 |
commit | d55f7e72d0af649c472ccc8bb34a408ead3ae7f4 (patch) | |
tree | 3a3517ff44a979c4e8c8c2e3135c9781457bbf42 /engines/sci/engine/scriptdebug.cpp | |
parent | e4f6330418d0261c5270d178c39412b8a850c6b7 (diff) | |
download | scummvm-rg350-d55f7e72d0af649c472ccc8bb34a408ead3ae7f4.tar.gz scummvm-rg350-d55f7e72d0af649c472ccc8bb34a408ead3ae7f4.tar.bz2 scummvm-rg350-d55f7e72d0af649c472ccc8bb34a408ead3ae7f4.zip |
Added auto-detection for games with older headers for script blocks, and removed game flag GF_SCI0_OLD
svn-id: r42211
Diffstat (limited to 'engines/sci/engine/scriptdebug.cpp')
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index a524ddd365..d5f0a21385 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -243,7 +243,7 @@ reg_t disassemble(EngineState *s, reg_t pos, int print_bw_tag, int print_bytecod int stackframe = (scr[pos.offset + 2] >> 1) + (*debugState.p_restadjust); int argc = ((*debugState.p_sp)[- stackframe - 1]).offset; - if (!(s->_flags & GF_SCI0_OLD)) + if (!s->_kernel->hasOldScriptHeader()) argc += (*debugState.p_restadjust); printf(" Kernel params: ("); |