aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();