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
This commit is contained in:
Filippos Karapetis 2009-07-08 10:25:37 +00:00
parent 90422f6bd3
commit 62499054a0
11 changed files with 240 additions and 310 deletions

View file

@ -87,7 +87,7 @@ EngineState::EngineState(ResourceManager *res, sci_version_t version, uint32 fla
_executionStackPosChanged = false;
r_acc = NULL_REG;
r_amp_rest = 0;
restAdjust = 0;
r_prev = NULL_REG;
stack_segment = 0;