[Scummvm-cvs-logs] SF.net SVN: scummvm: [24705] scummvm/trunk/base/main.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Mon Nov 13 13:03:38 CET 2006


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

Log Message:
-----------
Patch #1595319: "Enable the command line --debugflags before engine.init()"

Modified Paths:
--------------
    scummvm/trunk/base/main.cpp

Modified: scummvm/trunk/base/main.cpp
===================================================================
--- scummvm/trunk/base/main.cpp	2006-11-13 12:00:36 UTC (rev 24704)
+++ scummvm/trunk/base/main.cpp	2006-11-13 12:03:08 UTC (rev 24705)
@@ -215,14 +215,15 @@
 	// As a last resort add current directory
 	Common::File::addDefaultDirectory(".");
 
+	// On creation the engine should've set up all debug levels so we can use
+	// the command line arugments here
+	Common::enableSpecialDebugLevelList(edebuglevels);
+
 	int result;
 
 	// Init the engine (this might change the screen parameters
 	result = engine->init();
 
-	// Now the engine should've set up all debug levels so we can use the command line arugments here
-	Common::enableSpecialDebugLevelList(edebuglevels);
-
 	// Run the game engine if the initialization was successful.
 	if (result == 0) {
 		result = engine->go();


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