diff options
author | David Turner | 2010-11-10 04:30:24 +0000 |
---|---|---|
committer | David Turner | 2010-11-10 04:30:24 +0000 |
commit | 7ad677afc8ad3768a8c903afed5881403e1a026d (patch) | |
tree | 1eb5eb729a46ef2bfa086d510ff05fd6de9c7cab /engines/sword25/sword25.cpp | |
parent | c9969d2be02f640026a1be229c16527e953de83e (diff) | |
download | scummvm-rg350-7ad677afc8ad3768a8c903afed5881403e1a026d.tar.gz scummvm-rg350-7ad677afc8ad3768a8c903afed5881403e1a026d.tar.bz2 scummvm-rg350-7ad677afc8ad3768a8c903afed5881403e1a026d.zip |
SWORD25: Added basic debugging console to engine (Command Key Disabled)
Since SWORD25 uses Debug Channels, this allows for the interactive setting of debugflags as well as providing a base for adding further debugging commands.
However, this is not currently usable as the command key code is commented out.
This is due to the event loop which reads keyboard input being buried 2 object layers below the Engine VM object and I am unsure how the engine development team would want this exposed / interfaced.
svn-id: r54184
Diffstat (limited to 'engines/sword25/sword25.cpp')
-rw-r--r-- | engines/sword25/sword25.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sword25/sword25.cpp b/engines/sword25/sword25.cpp index 5864057423..4c188fe7ea 100644 --- a/engines/sword25/sword25.cpp +++ b/engines/sword25/sword25.cpp @@ -61,9 +61,13 @@ Sword25Engine::Sword25Engine(OSystem *syst, const ADGameDescription *gameDesc): DebugMan.addDebugChannel(kDebugScript, "Script", "Script debug level"); DebugMan.addDebugChannel(kDebugScript, "Scripts", "Script debug level"); DebugMan.addDebugChannel(kDebugSound, "Sound", "Sound debug level"); + + _console = new Sword25Console(this); } Sword25Engine::~Sword25Engine() { + DebugMan.clearAllDebugChannels(); + delete _console; } Common::Error Sword25Engine::run() { |