diff options
author | Max Horn | 2009-09-16 23:32:27 +0000 |
---|---|---|
committer | Max Horn | 2009-09-16 23:32:27 +0000 |
commit | a277123f54c7dd6f6d784501830b4e8975d47c27 (patch) | |
tree | f091c9c5e0f3160e876a70c8af9c162460ced977 /engines/sci/engine/scriptdebug.cpp | |
parent | 1b75a1825ede80a21b2cac65d7b574342575dc0d (diff) | |
download | scummvm-rg350-a277123f54c7dd6f6d784501830b4e8975d47c27.tar.gz scummvm-rg350-a277123f54c7dd6f6d784501830b4e8975d47c27.tar.bz2 scummvm-rg350-a277123f54c7dd6f6d784501830b4e8975d47c27.zip |
SCI: Rename Script class members, change Script from struct to class
svn-id: r44126
Diffstat (limited to 'engines/sci/engine/scriptdebug.cpp')
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 92a8f36fc5..4f4f23f1fc 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -117,8 +117,8 @@ reg_t disassemble(EngineState *s, reg_t pos, int print_bw_tag, int print_bytecod } else script_entity = (Script *)mobj; - scr = script_entity->buf; - scr_size = script_entity->buf_size; + scr = script_entity->_buf; + scr_size = script_entity->_bufSize; if (pos.offset >= scr_size) { warning("Trying to disassemble beyond end of script"); @@ -350,7 +350,7 @@ void script_debug(EngineState *s, bool bp) { disassemble(s, scriptState.xs->addr.pc, 0, 1); if (scriptState.seeking == kDebugSeekGlobal) printf("Global %d (0x%x) = %04x:%04x\n", scriptState.seekSpecial, - scriptState.seekSpecial, PRINT_REG(s->script_000->locals_block->_locals[scriptState.seekSpecial])); + scriptState.seekSpecial, PRINT_REG(s->script_000->_localsBlock->_locals[scriptState.seekSpecial])); } #endif @@ -364,8 +364,8 @@ void script_debug(EngineState *s, bool bp) { if (mobj) { Script *scr = (Script *)mobj; - byte *code_buf = scr->buf; - int code_buf_size = scr->buf_size; + byte *code_buf = scr->_buf; + int code_buf_size = scr->_bufSize; int opcode = scriptState.xs->addr.pc.offset >= code_buf_size ? 0 : code_buf[scriptState.xs->addr.pc.offset]; int op = opcode >> 1; int paramb1 = scriptState.xs->addr.pc.offset + 1 >= code_buf_size ? 0 : code_buf[scriptState.xs->addr.pc.offset + 1]; |