From 0119a659b5352ba284a7bff0afefa4d2bf054ac3 Mon Sep 17 00:00:00 2001 From: David Turner Date: Sun, 7 Nov 2010 15:02:41 +0000 Subject: 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 --- engines/cine/cine.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/cine/cine.cpp') 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() { -- cgit v1.2.3