XEEN: Register debug channels on startup

This commit is contained in:
Paul Gilbert 2016-09-16 19:32:05 -04:00
parent 1879aeae57
commit d5f290dbc7
2 changed files with 7 additions and 1 deletions

View File

@ -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() {

View File

@ -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;