aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.cpp
diff options
context:
space:
mode:
authorLars Skovlund2011-05-27 17:34:43 +0200
committerLars Skovlund2011-05-27 17:34:43 +0200
commitcb990e68a170f354a7e3e2db3be05e0a2ce46a04 (patch)
tree5379c28e3c8b42bf2d75875d575503cec33cddbe /engines/sci/sci.cpp
parentff62a6050aedca96e69cb284c5406833e59ca588 (diff)
downloadscummvm-rg350-cb990e68a170f354a7e3e2db3be05e0a2ce46a04.tar.gz
scummvm-rg350-cb990e68a170f354a7e3e2db3be05e0a2ce46a04.tar.bz2
scummvm-rg350-cb990e68a170f354a7e3e2db3be05e0a2ce46a04.zip
SCI: Fix access to variables (gc_interval etc.) from the console
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r--engines/sci/sci.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index cf46d41382..cc9042ceb7 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -213,8 +213,6 @@ Common::Error SciEngine::run() {
_gfxScreen = new GfxScreen(_resMan);
_gfxScreen->enableUndithering(ConfMan.getBool("disable_dithering"));
- // Create debugger console. It requires GFX to be initialized
- _console = new Console(this);
_kernel = new Kernel(_resMan, segMan);
_features = new GameFeatures(segMan, _kernel);
@@ -227,6 +225,9 @@ Common::Error SciEngine::run() {
_gamestate = new EngineState(segMan);
_eventMan = new EventManager(_resMan->detectFontExtended());
+ // Create debugger console. It requires GFX and _gamestate to be initialized
+ _console = new Console(this);
+
// The game needs to be initialized before the graphics system is initialized, as
// the graphics code checks parts of the seg manager upon initialization (e.g. for
// the presence of the fastCast object)