From d5f290dbc7946ec0f2872f0cd8d6d3a63c9f2162 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 16 Sep 2016 19:32:05 -0400 Subject: XEEN: Register debug channels on startup --- engines/xeen/music.cpp | 2 +- engines/xeen/xeen.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/engines/xeen/music.cpp b/engines/xeen/music.cpp index 2000070c9b..0e061e9232 100644 --- a/engines/xeen/music.cpp +++ b/engines/xeen/music.cpp @@ -297,7 +297,7 @@ int AdlibMusicDriver::songCommand(uint commandId, byte volume) { void AdlibMusicDriver::write(int reg, int val) { _queue.push(RegisterValue(reg, val)); - debugC(9, kDebugSound, "%.2x %2x", reg, val); + debugC(9, kDebugSound, "%.2x %.2x", reg, val); } void AdlibMusicDriver::flush() { diff --git a/engines/xeen/xeen.cpp b/engines/xeen/xeen.cpp index c67ee07b69..6e392ea9b9 100644 --- a/engines/xeen/xeen.cpp +++ b/engines/xeen/xeen.cpp @@ -36,6 +36,12 @@ namespace Xeen { XeenEngine::XeenEngine(OSystem *syst, const XeenGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc), _randomSource("Xeen") { + // Set up debug channels + DebugMan.addDebugChannel(kDebugPath, "Path", "Pathfinding debug level"); + DebugMan.addDebugChannel(kDebugScripts, "scripts", "Game scripts"); + DebugMan.addDebugChannel(kDebugGraphics, "graphics", "Graphics handling"); + DebugMan.addDebugChannel(kDebugSound, "sound", "Sound processing"); + _combat = nullptr; _debugger = nullptr; _events = nullptr; -- cgit v1.2.3