diff options
author | Martin Kiewitz | 2010-07-17 12:06:31 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-07-17 12:06:31 +0000 |
commit | e000d2865450090d28f6a72608b963ece6435d4a (patch) | |
tree | 7b62ce156ef6ddf3c93180576dd10708cca8b0a7 /engines/sci/engine | |
parent | 83e2aa236092120bf03efbf38558f69719dda11a (diff) | |
download | scummvm-rg350-e000d2865450090d28f6a72608b963ece6435d4a.tar.gz scummvm-rg350-e000d2865450090d28f6a72608b963ece6435d4a.tar.bz2 scummvm-rg350-e000d2865450090d28f6a72608b963ece6435d4a.zip |
SCI: fix debugging code of parser, add 0xffe special group into debug support
svn-id: r50956
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kparse.cpp | 4 | ||||
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/kparse.cpp b/engines/sci/engine/kparse.cpp index 45493a95d2..80a1c10e59 100644 --- a/engines/sci/engine/kparse.cpp +++ b/engines/sci/engine/kparse.cpp @@ -60,8 +60,8 @@ reg_t kSaid(EngineState *s, int argc, reg_t *argv) { } #ifdef DEBUG_PARSER - debugC(2, kDebugLevelParser, "Said block:", 0); - s->_voc->decipherSaidBlock(said_block); + printf("Said block: "); + g_sci->getVocabulary()->decipherSaidBlock(said_block); #endif if (voc->parser_event.isNull() || (readSelectorValue(s->_segMan, voc->parser_event, SELECTOR(claimed)))) { diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 915a6fa994..4521995123 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -489,7 +489,7 @@ void Kernel::dissectScript(int scriptNumber, Vocabulary *vocab) { printf("%04x: ", seeker); while (seeker < _seeker) { - unsigned char nextitem = script->data [seeker++]; + uint16 nextitem = script->data [seeker++]; if (nextitem == 0xFF) printf("\n%04x: ", seeker); else if (nextitem >= 0xF0) { |