Ticket #8588: enabledebug.patch

File enabledebug.patch, 794 bytes (added by jvprat, 17 years ago)

Enable the command line --debugflags before engine.init()

  • base/main.cpp

     
    215215        // As a last resort add current directory
    216216        Common::File::addDefaultDirectory(".");
    217217
     218        // Now the engine should've set up all debug levels so we can use the command line arugments here
     219        Common::enableSpecialDebugLevelList(edebuglevels);
     220
    218221        int result;
    219222
    220223        // Init the engine (this might change the screen parameters
    221224        result = engine->init();
    222225
    223         // Now the engine should've set up all debug levels so we can use the command line arugments here
    224         Common::enableSpecialDebugLevelList(edebuglevels);
    225 
    226226        // Run the game engine if the initialization was successful.
    227227        if (result == 0) {
    228228                result = engine->go();