diff options
author | Johannes Schickel | 2006-06-14 19:43:25 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-06-14 19:43:25 +0000 |
commit | 70fc192f30e49ecf5f94cd1808c5600d390b231f (patch) | |
tree | ec37e9a661ae2987ecae58105c352fd98068f61a | |
parent | 42d093cd166aacccf11bc8fdc0c384aa3d38a73a (diff) | |
download | scummvm-rg350-70fc192f30e49ecf5f94cd1808c5600d390b231f.tar.gz scummvm-rg350-70fc192f30e49ecf5f94cd1808c5600d390b231f.tar.bz2 scummvm-rg350-70fc192f30e49ecf5f94cd1808c5600d390b231f.zip |
Should fix --debugflags for all engines which set up the debug flags in Engine::init.
svn-id: r23110
-rw-r--r-- | base/main.cpp | 6 |
1 files 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(); |