diff options
author | Eugene Sandulenko | 2006-11-13 12:00:36 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-11-13 12:00:36 +0000 |
commit | 88fabf4a5380f2be941f3dc4b3d9f72aae5455ae (patch) | |
tree | 0a1b65b46fe533414b34235998b5551deac3a515 | |
parent | 5563013c1d31d8dbcc451d5f37bc21c8ae55848b (diff) | |
download | scummvm-rg350-88fabf4a5380f2be941f3dc4b3d9f72aae5455ae.tar.gz scummvm-rg350-88fabf4a5380f2be941f3dc4b3d9f72aae5455ae.tar.bz2 scummvm-rg350-88fabf4a5380f2be941f3dc4b3d9f72aae5455ae.zip |
Move addSpecialDebugLevel calls to engine constructor, as stated in our
HOWTO Engines.
svn-id: r24704
-rw-r--r-- | engines/kyra/kyra.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp index 3702062864..ee30155aa9 100644 --- a/engines/kyra/kyra.cpp +++ b/engines/kyra/kyra.cpp @@ -107,6 +107,18 @@ KyraEngine::KyraEngine(OSystem *system, const GameFlags &flags) memset(_sceneAnimTable, 0, sizeof(_sceneAnimTable)); _quitFlag = false; _currHeadShape = 0; + + // sets up all engine specific debug levels + Common::addSpecialDebugLevel(kDebugLevelScriptFuncs, "ScriptFuncs", "Script function debug level"); + Common::addSpecialDebugLevel(kDebugLevelScript, "Script", "Script interpreter debug level"); + Common::addSpecialDebugLevel(kDebugLevelSprites, "Sprites", "Sprite debug level"); + Common::addSpecialDebugLevel(kDebugLevelScreen, "Screen", "Screen debug level"); + Common::addSpecialDebugLevel(kDebugLevelSound, "Sound", "Sound debug level"); + Common::addSpecialDebugLevel(kDebugLevelAnimator, "Animator", "Animator debug level"); + Common::addSpecialDebugLevel(kDebugLevelMain, "Main", "Generic debug level"); + Common::addSpecialDebugLevel(kDebugLevelGUI, "GUI", "GUI debug level"); + Common::addSpecialDebugLevel(kDebugLevelSequence, "Sequence", "Sequence debug level"); + Common::addSpecialDebugLevel(kDebugLevelMovie, "Movie", "Movie debug level"); } KyraEngine_v1::KyraEngine_v1(OSystem *system, const GameFlags &flags) @@ -123,18 +135,6 @@ int KyraEngine::init() { _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, ConfMan.getInt("music_volume")); _mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, ConfMan.getInt("speech_volume")); - // sets up all engine specific debug levels - Common::addSpecialDebugLevel(kDebugLevelScriptFuncs, "ScriptFuncs", "Script function debug level"); - Common::addSpecialDebugLevel(kDebugLevelScript, "Script", "Script interpreter debug level"); - Common::addSpecialDebugLevel(kDebugLevelSprites, "Sprites", "Sprite debug level"); - Common::addSpecialDebugLevel(kDebugLevelScreen, "Screen", "Screen debug level"); - Common::addSpecialDebugLevel(kDebugLevelSound, "Sound", "Sound debug level"); - Common::addSpecialDebugLevel(kDebugLevelAnimator, "Animator", "Animator debug level"); - Common::addSpecialDebugLevel(kDebugLevelMain, "Main", "Generic debug level"); - Common::addSpecialDebugLevel(kDebugLevelGUI, "GUI", "GUI debug level"); - Common::addSpecialDebugLevel(kDebugLevelSequence, "Sequence", "Sequence debug level"); - Common::addSpecialDebugLevel(kDebugLevelMovie, "Movie", "Movie debug level"); - _screen = new Screen(this, _system); assert(_screen); if (!_screen->init()) |