aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel
diff options
context:
space:
mode:
authorEugene Sandulenko2016-07-28 11:45:33 +0300
committerEugene Sandulenko2016-07-28 11:45:33 +0300
commit406b8cf33bc8c324b5040978f74f04d7ed66b054 (patch)
tree737dc40d2411464c3f7d04d39faf4afb6c0b08ba /engines/tinsel
parentaa2eec09be4428ddff9fcf6a1f2febe718b867e5 (diff)
downloadscummvm-rg350-406b8cf33bc8c324b5040978f74f04d7ed66b054.tar.gz
scummvm-rg350-406b8cf33bc8c324b5040978f74f04d7ed66b054.tar.bz2
scummvm-rg350-406b8cf33bc8c324b5040978f74f04d7ed66b054.zip
TINSEL: Move debug channel registration to the very top of the engine constructor
Diffstat (limited to 'engines/tinsel')
-rw-r--r--engines/tinsel/tinsel.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/tinsel/tinsel.cpp b/engines/tinsel/tinsel.cpp
index 44e81494f7..8ad177abbb 100644
--- a/engines/tinsel/tinsel.cpp
+++ b/engines/tinsel/tinsel.cpp
@@ -821,6 +821,12 @@ const char *const TinselEngine::_textFiles[][3] = {
TinselEngine::TinselEngine(OSystem *syst, const TinselGameDescription *gameDesc) :
Engine(syst), _gameDescription(gameDesc), _random("tinsel"),
_console(0), _sound(0), _midiMusic(0), _pcmMusic(0), _bmv(0) {
+ // Register debug flags
+ DebugMan.addDebugChannel(kTinselDebugAnimations, "animations", "Animations debugging");
+ DebugMan.addDebugChannel(kTinselDebugActions, "actions", "Actions debugging");
+ DebugMan.addDebugChannel(kTinselDebugSound, "sound", "Sound debugging");
+ DebugMan.addDebugChannel(kTinselDebugMusic, "music", "Music debugging");
+
_vm = this;
_gameId = 0;
@@ -828,12 +834,6 @@ TinselEngine::TinselEngine(OSystem *syst, const TinselGameDescription *gameDesc)
_config = new Config(this);
- // Register debug flags
- DebugMan.addDebugChannel(kTinselDebugAnimations, "animations", "Animations debugging");
- DebugMan.addDebugChannel(kTinselDebugActions, "actions", "Actions debugging");
- DebugMan.addDebugChannel(kTinselDebugSound, "sound", "Sound debugging");
- DebugMan.addDebugChannel(kTinselDebugMusic, "music", "Music debugging");
-
// Setup mixer
syncSoundSettings();