aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock
diff options
context:
space:
mode:
authorEugene Sandulenko2016-07-28 11:44:04 +0300
committerEugene Sandulenko2016-07-28 11:44:04 +0300
commitaa2eec09be4428ddff9fcf6a1f2febe718b867e5 (patch)
treed03a8c98d2a8712d8d7dcf5932bf03b13404285d /engines/sherlock
parent1fc03406e3d1f83ee8ec89c52e0faf369b7c6c74 (diff)
downloadscummvm-rg350-aa2eec09be4428ddff9fcf6a1f2febe718b867e5.tar.gz
scummvm-rg350-aa2eec09be4428ddff9fcf6a1f2febe718b867e5.tar.bz2
scummvm-rg350-aa2eec09be4428ddff9fcf6a1f2febe718b867e5.zip
SHERLOCK: Fix debug channel initialization
Diffstat (limited to 'engines/sherlock')
-rw-r--r--engines/sherlock/sherlock.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sherlock/sherlock.cpp b/engines/sherlock/sherlock.cpp
index e068ac481a..c6b38f78d7 100644
--- a/engines/sherlock/sherlock.cpp
+++ b/engines/sherlock/sherlock.cpp
@@ -30,6 +30,11 @@ namespace Sherlock {
SherlockEngine::SherlockEngine(OSystem *syst, const SherlockGameDescription *gameDesc) :
Engine(syst), _gameDescription(gameDesc), _randomSource("Sherlock") {
+ DebugMan.addDebugChannel(kDebugLevelScript, "scripts", "Script debug level");
+ DebugMan.addDebugChannel(kDebugLevelAdLibDriver, "AdLib", "AdLib driver debugging");
+ DebugMan.addDebugChannel(kDebugLevelMT32Driver, "MT32", "MT32 driver debugging");
+ DebugMan.addDebugChannel(kDebugLevelMusic, "Music", "Music debugging");
+
_animation = nullptr;
_debugger = nullptr;
_events = nullptr;
@@ -74,11 +79,6 @@ SherlockEngine::~SherlockEngine() {
}
void SherlockEngine::initialize() {
- DebugMan.addDebugChannel(kDebugLevelScript, "scripts", "Script debug level");
- DebugMan.addDebugChannel(kDebugLevelAdLibDriver, "AdLib", "AdLib driver debugging");
- DebugMan.addDebugChannel(kDebugLevelMT32Driver, "MT32", "MT32 driver debugging");
- DebugMan.addDebugChannel(kDebugLevelMusic, "Music", "Music debugging");
-
Fonts::setVm(this);
ImageFile::setVm(this);
ImageFile3DO::setVm(this);