diff options
-rw-r--r-- | engines/xeen/music.cpp | 2 | ||||
-rw-r--r-- | engines/xeen/xeen.cpp | 6 |
2 files changed, 7 insertions, 1 deletions
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; |