diff options
author | David Turner | 2010-11-07 15:02:41 +0000 |
---|---|---|
committer | David Turner | 2010-11-07 15:02:41 +0000 |
commit | 0119a659b5352ba284a7bff0afefa4d2bf054ac3 (patch) | |
tree | 8bfd821b8a6a18a713839d0c39a7c144b836aed7 /engines/cine/cine.cpp | |
parent | f452fe82ad107039ca578b86c97fc781e73f2761 (diff) | |
download | scummvm-rg350-0119a659b5352ba284a7bff0afefa4d2bf054ac3.tar.gz scummvm-rg350-0119a659b5352ba284a7bff0afefa4d2bf054ac3.tar.bz2 scummvm-rg350-0119a659b5352ba284a7bff0afefa4d2bf054ac3.zip |
CINE: Added basic debugging console to engine
Since CINE uses Debug Channels, this allows for the interactive setting of debugflags as well as providing a base for adding further debugging commands.
svn-id: r54115
Diffstat (limited to 'engines/cine/cine.cpp')
-rw-r--r-- | engines/cine/cine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/cine/cine.cpp b/engines/cine/cine.cpp index 5c2119c1e4..38a0eda13e 100644 --- a/engines/cine/cine.cpp +++ b/engines/cine/cine.cpp @@ -56,6 +56,7 @@ CineEngine::CineEngine(OSystem *syst, const CINEGameDescription *gameDesc) : Eng DebugMan.addDebugChannel(kCineDebugScript, "Script", "Script debug level"); DebugMan.addDebugChannel(kCineDebugPart, "Part", "Part debug level"); DebugMan.addDebugChannel(kCineDebugSound, "Sound", "Sound debug level"); + _console = new CineConsole(this); // Setup mixer _mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume")); @@ -74,7 +75,9 @@ CineEngine::~CineEngine() { if (getGameType() == Cine::GType_OS) { freeErrmessDat(); } + DebugMan.clearAllDebugChannels(); + delete _console; } Common::Error CineEngine::run() { |