[Scummvm-cvs-logs] SF.net SVN: scummvm: [24704] scummvm/trunk/engines/kyra/kyra.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Mon Nov 13 13:01:10 CET 2006


Revision: 24704
          http://svn.sourceforge.net/scummvm/?rev=24704&view=rev
Author:   sev
Date:     2006-11-13 04:00:36 -0800 (Mon, 13 Nov 2006)

Log Message:
-----------
Move addSpecialDebugLevel calls to engine constructor, as stated in our
HOWTO Engines.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/kyra.cpp

Modified: scummvm/trunk/engines/kyra/kyra.cpp
===================================================================
--- scummvm/trunk/engines/kyra/kyra.cpp	2006-11-12 21:08:55 UTC (rev 24703)
+++ scummvm/trunk/engines/kyra/kyra.cpp	2006-11-13 12:00:36 UTC (rev 24704)
@@ -107,6 +107,18 @@
 	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 @@
 	_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())


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list