aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/scriptdebug.cpp
diff options
context:
space:
mode:
authorMax Horn2010-06-28 11:22:20 +0000
committerMax Horn2010-06-28 11:22:20 +0000
commit30218a2c324bc67f724100051ab9884a351928fb (patch)
tree38b0a0b7a3a723d82a295ac75caf84204ad3c826 /engines/sci/engine/scriptdebug.cpp
parent85038e7d6c272555c54d9f4b87665392bfa96aaf (diff)
downloadscummvm-rg350-30218a2c324bc67f724100051ab9884a351928fb.tar.gz
scummvm-rg350-30218a2c324bc67f724100051ab9884a351928fb.tar.bz2
scummvm-rg350-30218a2c324bc67f724100051ab9884a351928fb.zip
SCI: Make Script member vars private; add const qualifiers
Only three Script members remain public (for now) svn-id: r50428
Diffstat (limited to 'engines/sci/engine/scriptdebug.cpp')
-rw-r--r--engines/sci/engine/scriptdebug.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp
index d730856332..4813e083fd 100644
--- a/engines/sci/engine/scriptdebug.cpp
+++ b/engines/sci/engine/scriptdebug.cpp
@@ -69,7 +69,7 @@ DebugState g_debugState; // FIXME: Avoid non-const global vars
reg_t disassemble(EngineState *s, reg_t pos, int print_bw_tag, int print_bytecode) {
SegmentObj *mobj = s->_segMan->getSegment(pos.segment, SEG_TYPE_SCRIPT);
Script *script_entity = NULL;
- byte *scr;
+ const byte *scr;
int scr_size;
reg_t retval = make_reg(pos.segment, pos.offset + 1);
uint16 param_value;
@@ -82,7 +82,7 @@ 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 = script_entity->getBuf();
scr_size = script_entity->getBufSize();
if (pos.offset >= scr_size) {
@@ -291,7 +291,7 @@ void script_debug(EngineState *s) {
if (mobj) {
Script *scr = (Script *)mobj;
- byte *code_buf = scr->_buf;
+ const byte *code_buf = scr->getBuf();
int code_buf_size = scr->getBufSize();
int opcode = s->xs->addr.pc.offset >= code_buf_size ? 0 : code_buf[s->xs->addr.pc.offset];
int op = opcode >> 1;