From 70fc192f30e49ecf5f94cd1808c5600d390b231f Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 14 Jun 2006 19:43:25 +0000 Subject: Should fix --debugflags for all engines which set up the debug flags in Engine::init. svn-id: r23110 --- base/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/main.cpp b/base/main.cpp index bfb1a499f9..49b36c312a 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -205,9 +205,6 @@ static int runGame(const Plugin *plugin, OSystem &system, const Common::String & return 0; } - // Now the engine should've set up all debug levels so we can use the command line arugments here - Common::enableSpecialDebugLevelList(edebuglevels); - // Set the window caption to the game name Common::String caption(ConfMan.get("description")); @@ -240,6 +237,9 @@ static int runGame(const Plugin *plugin, OSystem &system, const Common::String & // 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(); -- cgit v1.2.3