aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-16 19:32:05 -0400
committerPaul Gilbert2016-09-16 19:32:05 -0400
commitd5f290dbc7946ec0f2872f0cd8d6d3a63c9f2162 (patch)
treed675422481f4e027171883a9bb01b0b8e59747cd /engines/xeen
parent1879aeae578e75518f0c798a77b2983eb1b29c26 (diff)
downloadscummvm-rg350-d5f290dbc7946ec0f2872f0cd8d6d3a63c9f2162.tar.gz
scummvm-rg350-d5f290dbc7946ec0f2872f0cd8d6d3a63c9f2162.tar.bz2
scummvm-rg350-d5f290dbc7946ec0f2872f0cd8d6d3a63c9f2162.zip
XEEN: Register debug channels on startup
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/music.cpp2
-rw-r--r--engines/xeen/xeen.cpp6
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;