aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorEugene Sandulenko2006-11-13 12:03:08 +0000
committerEugene Sandulenko2006-11-13 12:03:08 +0000
commit4d840e52953a7b297f67fe289c8476c874d6ca35 (patch)
treef975fa6e59589314f63701a4cdad4e9812b60206 /base
parent88fabf4a5380f2be941f3dc4b3d9f72aae5455ae (diff)
downloadscummvm-rg350-4d840e52953a7b297f67fe289c8476c874d6ca35.tar.gz
scummvm-rg350-4d840e52953a7b297f67fe289c8476c874d6ca35.tar.bz2
scummvm-rg350-4d840e52953a7b297f67fe289c8476c874d6ca35.zip
Patch #1595319: "Enable the command line --debugflags before engine.init()"
svn-id: r24705
Diffstat (limited to 'base')
-rw-r--r--base/main.cpp7
1 files changed, 4 insertions, 3 deletions
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();