diff options
author | Filippos Karapetis | 2009-07-08 10:25:37 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-07-08 10:25:37 +0000 |
commit | 62499054a0639fd9bca6b0573bca3b664e8561fe (patch) | |
tree | 12b9cab8657bd4bd9ae9fe6c9b0d3cc54e59dd69 /engines/sci/sci.cpp | |
parent | 90422f6bd3e7f4b6c1df82124ce5000986822651 (diff) | |
download | scummvm-rg350-62499054a0639fd9bca6b0573bca3b664e8561fe.tar.gz scummvm-rg350-62499054a0639fd9bca6b0573bca3b664e8561fe.tar.bz2 scummvm-rg350-62499054a0639fd9bca6b0573bca3b664e8561fe.zip |
Some cleanup for the script debugger code:
- Renamed struct DebugState to ScriptState and r_amp_rest to restAdjust inside EngineState. Changed restAdjust to be a uint16 (actually it is a uint16, but it was being casted back and forth from an unsigned integer, so this clears up its type and size)
- Moved the script state variables from inside the run_vm() into the ScriptState struct, so that they can be accessed by the console commands and the script debugger all the time, and removed the weird isValid code
svn-id: r42260
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r-- | engines/sci/sci.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 09c433edc2..9c94e2edde 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -240,12 +240,12 @@ Common::Error SciEngine::run() { GUI::Debugger *SciEngine::getDebugger() { if (_gamestate) { ExecStack *xs = &(_gamestate->_executionStack.back()); - xs->addr.pc.offset = debugState.old_pc_offset; - xs->sp = debugState.old_sp; + xs->addr.pc.offset = scriptState.old_pc_offset; + xs->sp = scriptState.old_sp; } - debugState.runningStep = 0; // Stop multiple execution - debugState.seeking = kDebugSeekNothing; // Stop special seeks + scriptState.runningStep = 0; // Stop multiple execution + scriptState.seeking = kDebugSeekNothing; // Stop special seeks return _console; } |