diff options
author | Filippos Karapetis | 2011-09-22 04:07:37 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-09-22 04:18:11 +0300 |
commit | 7f675de8554b30e7b14af87a9cbb2e51d66fde5b (patch) | |
tree | 99c7dffdf4ec7199df7d1f5440757f9ce0aedd8b /engines/sci/engine | |
parent | 953c36675b7229a708f17b088030734fce41a1e2 (diff) | |
download | scummvm-rg350-7f675de8554b30e7b14af87a9cbb2e51d66fde5b.tar.gz scummvm-rg350-7f675de8554b30e7b14af87a9cbb2e51d66fde5b.tar.bz2 scummvm-rg350-7f675de8554b30e7b14af87a9cbb2e51d66fde5b.zip |
SCI: Fixed compilation with VM_DEBUG_SEND defined
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 5 | ||||
-rw-r--r-- | engines/sci/engine/vm.cpp | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 3a18fbc68f..ad3f4fb788 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -31,6 +31,8 @@ namespace Sci { +//#define VM_DEBUG_SEND + // This table is only used for debugging. Don't include it for devices // with not enough available memory (e.g. phones), where REDUCE_MEMORY_USAGE // is defined @@ -618,12 +620,13 @@ void debugSelectorCall(reg_t send_obj, Selector selector, int argc, StackPtr arg #ifdef VM_DEBUG_SEND debugN("Send to %04x:%04x (%s), selector %04x (%s):", PRINT_REG(send_obj), - s->_segMan->getObjectName(send_obj), selector, + segMan->getObjectName(send_obj), selector, g_sci->getKernel()->getSelectorName(selector).c_str()); #endif // VM_DEBUG_SEND switch (selectorType) { case kSelectorNone: + debugN("\n"); break; case kSelectorVariable: #ifdef VM_DEBUG_SEND diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index 274b0bbbc9..7c22b48ece 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -41,7 +41,6 @@ namespace Sci { const reg_t NULL_REG = {0, 0}; const reg_t SIGNAL_REG = {0, SIGNAL_OFFSET}; const reg_t TRUE_REG = {0, 1}; -//#define VM_DEBUG_SEND // Enable the define below to have the VM abort on cases where a conditional // statement is followed by an unconditional jump (which will most likely lead // to an infinite loop). Aids in detecting script bugs such as #3040722. |