diff options
author | Nicola Mettifogo | 2008-07-28 08:25:06 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-07-28 08:25:06 +0000 |
commit | 8d59006bd7ed3ea00e84649d316139da4fa37408 (patch) | |
tree | fe4b1ad748efae583af7f31abd7c5a586e4c7417 /engines/parallaction/exec_br.cpp | |
parent | 533dbfd756f744234fdc2942472a61b542530193 (diff) | |
download | scummvm-rg350-8d59006bd7ed3ea00e84649d316139da4fa37408.tar.gz scummvm-rg350-8d59006bd7ed3ea00e84649d316139da4fa37408.tar.bz2 scummvm-rg350-8d59006bd7ed3ea00e84649d316139da4fa37408.zip |
Some instrumentation for script debugging.
svn-id: r33359
Diffstat (limited to 'engines/parallaction/exec_br.cpp')
-rw-r--r-- | engines/parallaction/exec_br.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/parallaction/exec_br.cpp b/engines/parallaction/exec_br.cpp index ef671b1e0e..9376aa57ef 100644 --- a/engines/parallaction/exec_br.cpp +++ b/engines/parallaction/exec_br.cpp @@ -61,8 +61,6 @@ namespace Parallaction { #define INST_STOP 30 #define INST_ENDSCRIPT 31 - - #define SetOpcodeTable(x) table = &x; typedef Common::Functor0Mem<void, CommandExec_br> OpcodeV1; @@ -73,6 +71,8 @@ typedef Common::Functor0Mem<void, ProgramExec_br> OpcodeV2; #define INSTRUCTION_OPCODE(op) table->push_back(new OpcodeV2(this, &ProgramExec_br::instOp_##op)) #define DECLARE_INSTRUCTION_OPCODE(op) void ProgramExec_br::instOp_##op() +extern const char *_instructionNamesRes_br[]; + void Parallaction_br::setupSubtitles(char *s, char *s2, int y) { debugC(5, kDebugExec, "setupSubtitles(%s, %s, %i)", s, s2, y); @@ -602,6 +602,7 @@ void ProgramExec_br::init() { } ProgramExec_br::ProgramExec_br(Parallaction_br *vm) : ProgramExec_ns(vm), _vm(vm) { + _instructionNames = _instructionNamesRes_br; } ProgramExec_br::~ProgramExec_br() { |