hedgewars/hwengine.pas
changeset 4413 46caab3a8f84
parent 4408 81b0961b9863
child 4437 05192cdbce9b
equal deleted inserted replaced
4412:c9a78ba03679 4413:46caab3a8f84
    29 program hwengine;
    29 program hwengine;
    30 {$ENDIF}
    30 {$ENDIF}
    31 
    31 
    32 uses SDLh, uMisc, uConsole, uGame, uConsts, uLand, uAmmos, uVisualGears, uGears, uStore, uWorld, uKeys, uSound,
    32 uses SDLh, uMisc, uConsole, uGame, uConsts, uLand, uAmmos, uVisualGears, uGears, uStore, uWorld, uKeys, uSound,
    33      uScript, uTeams, uStats, uIO, uLocale, uChat, uAI, uAIMisc, uRandom, uLandTexture, uCollisions, uMobile,
    33      uScript, uTeams, uStats, uIO, uLocale, uChat, uAI, uAIMisc, uRandom, uLandTexture, uCollisions, uMobile,
    34      sysutils, uTypes, uVariables, uCommands, uUtils, uCaptions, uDebug;
    34      sysutils, uTypes, uVariables, uCommands, uUtils, uCaptions, uDebug, uCommandHandlers;
    35 
    35 
    36 var isTerminated: boolean = false;
    36 var isTerminated: boolean = false;
    37     alsoShutdownFrontend: boolean = false;
    37     alsoShutdownFrontend: boolean = false;
    38 
    38 
    39 {$IFDEF HWLIBRARY}
    39 {$IFDEF HWLIBRARY}
   322     uUtils.initModule;
   322     uUtils.initModule;
   323     uMisc.initModule;
   323     uMisc.initModule;
   324     uVariables.initModule;
   324     uVariables.initModule;
   325     uConsole.initModule;    // MUST happen after uMisc
   325     uConsole.initModule;    // MUST happen after uMisc
   326     uCommands.initModule;
   326     uCommands.initModule;
       
   327     uCommandHandlers.initModule;
   327 
   328 
   328     uLand.initModule;
   329     uLand.initModule;
   329     uIO.initModule;
   330     uIO.initModule;
   330 
   331 
   331     if complete then
   332     if complete then
   390     end;
   391     end;
   391 
   392 
   392     uIO.freeModule;             //stub
   393     uIO.freeModule;             //stub
   393     uLand.freeModule;
   394     uLand.freeModule;
   394 
   395 
       
   396     uCommandHandlers.freeModule;
   395     uCommands.freeModule;
   397     uCommands.freeModule;
   396     uConsole.freeModule;
   398     uConsole.freeModule;
   397     uVariables.freeModule;
   399     uVariables.freeModule;
   398     uUtils.freeModule;
   400     uUtils.freeModule;
   399     uMisc.freeModule;           // uMisc closes the debug log.
   401     uMisc.freeModule;           // uMisc closes the debug log.