From 4d840e52953a7b297f67fe289c8476c874d6ca35 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 13 Nov 2006 12:03:08 +0000 Subject: Patch #1595319: "Enable the command line --debugflags before engine.init()" svn-id: r24705 --- base/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'base') diff --git a/base/main.cpp b/base/main.cpp index efd3791d1f..3bd7fe2c8a 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -215,14 +215,15 @@ static int runGame(const Plugin *plugin, OSystem &system, const Common::String & // 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(); -- cgit v1.2.3