[Scummvm-git-logs] scummvm master -> d5f290dbc7946ec0f2872f0cd8d6d3a63c9f2162

dreammaster dreammaster at scummvm.org
Sat Sep 17 01:32:11 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d5f290dbc7 XEEN: Register debug channels on startup


Commit: d5f290dbc7946ec0f2872f0cd8d6d3a63c9f2162
    https://github.com/scummvm/scummvm/commit/d5f290dbc7946ec0f2872f0cd8d6d3a63c9f2162
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-09-16T19:32:05-04:00

Commit Message:
XEEN: Register debug channels on startup

Changed paths:
    engines/xeen/music.cpp
    engines/xeen/xeen.cpp



diff --git a/engines/xeen/music.cpp b/engines/xeen/music.cpp
index 2000070..0e061e9 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 c67ee07..6e392ea 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;





More information about the Scummvm-git-logs mailing list