diff options
author | md5 | 2011-03-25 13:26:20 +0200 |
---|---|---|
committer | md5 | 2011-03-25 13:37:00 +0200 |
commit | d86504ef887c5f10fedbc081476a050295241cb4 (patch) | |
tree | bceaf93b0b1769a32596d63b46913bd76a9f0d19 /engines/sci/console.cpp | |
parent | 4ceb4838ed9c153337a7a07fc03d3d1e78351af4 (diff) | |
download | scummvm-rg350-d86504ef887c5f10fedbc081476a050295241cb4.tar.gz scummvm-rg350-d86504ef887c5f10fedbc081476a050295241cb4.tar.bz2 scummvm-rg350-d86504ef887c5f10fedbc081476a050295241cb4.zip |
SCI: Cleaned up the BreakpointType enum and documented the bpe command
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r-- | engines/sci/console.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 93d21c32e0..e2e5ee9682 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -3154,10 +3154,9 @@ bool Console::cmdBreakpointKernel(int argc, const char **argv) { } bool Console::cmdBreakpointFunction(int argc, const char **argv) { - // TODO/FIXME: Why does this accept 2 parameters (the high and the low part of the address)?" if (argc != 3) { DebugPrintf("Sets a breakpoint on the execution of the specified exported function.\n"); - DebugPrintf("Usage: %s <addr1> <addr2>\n", argv[0]); + DebugPrintf("Usage: %s <script number> <export number\n", argv[0]); return true; } @@ -3166,6 +3165,7 @@ bool Console::cmdBreakpointFunction(int argc, const char **argv) { A breakpoint set on an invalid method name will just never trigger. */ Breakpoint bp; bp.type = BREAK_EXPORT; + // script number, export number bp.address = (atoi(argv[1]) << 16 | atoi(argv[2])); _debugState._breakpoints.push_back(bp); |