From 317da8756e1d350167739d82b128fc5fcd70687e Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 3 Jun 2009 14:09:25 +0000 Subject: - Moved the engine state and the console to be private members of SciEngine - Implemented pauseEngineIntern() - Music now stops and resumes when entering/leaving the debugger svn-id: r41139 --- engines/sci/engine/grammar.cpp | 4 ++-- engines/sci/engine/kevent.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sci/engine') diff --git a/engines/sci/engine/grammar.cpp b/engines/sci/engine/grammar.cpp index b54815176e..2c035fcb53 100644 --- a/engines/sci/engine/grammar.cpp +++ b/engines/sci/engine/grammar.cpp @@ -351,7 +351,7 @@ parse_rule_list_t *Vocabulary::buildGNF(bool verbose) { int ntrules_nr; parse_rule_list_t *ntlist = NULL; parse_rule_list_t *tlist, *new_tlist; - Sci::Console *con = ((SciEngine *)g_engine)->_console; + GUI::Debugger *con = ((SciEngine *)g_engine)->getDebugger(); for (uint i = 1; i < _parserBranches.size(); i++) { // branch rule 0 is treated specially parse_rule_t *rule = _vbuild_rule(&_parserBranches[i]); @@ -477,7 +477,7 @@ static int _vbpt_write_subexpression(parse_tree_node_t *nodes, int *pos, parse_r } int Vocabulary::parseGNF(parse_tree_node_t *nodes, const ResultWordList &words, bool verbose) { - Sci::Console *con = ((SciEngine *)g_engine)->_console; + GUI::Debugger *con = ((SciEngine *)g_engine)->getDebugger(); // Get the start rules: parse_rule_list_t *work = _vocab_clone_rule_list_by_id(_parserRules, _parserBranches[0].data[1]); parse_rule_list_t *results = NULL; diff --git a/engines/sci/engine/kevent.cpp b/engines/sci/engine/kevent.cpp index 7b1be0ae62..c0a137469e 100644 --- a/engines/sci/engine/kevent.cpp +++ b/engines/sci/engine/kevent.cpp @@ -111,7 +111,7 @@ reg_t kGetEvent(EngineState *s, int funct_nr, int argc, reg_t *argv) { // track left buttton clicks, if requested if (e.type == SCI_EVT_MOUSE_PRESS && e.data == 1 && debug_track_mouse_clicks) { - ((SciEngine *)g_engine)->_console->DebugPrintf("Mouse clicked at %d, %d\n", + ((SciEngine *)g_engine)->getDebugger()->DebugPrintf("Mouse clicked at %d, %d\n", s->gfx_state->pointer_pos.x, s->gfx_state->pointer_pos.y); } -- cgit v1.2.3