hedgewars/hwengine.pas
changeset 4373 fe0e3903bb9e
parent 4359 83ef50815535
child 4374 bcefeeabaa33
equal deleted inserted replaced
4372:3836973380b9 4373:fe0e3903bb9e
    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;
    34      sysutils, uTypes, uVariables, uCommands;
    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}
   320 
   320 
   321     // uConsts does not need initialization as they are all consts
   321     // uConsts does not need initialization as they are all consts
   322     uMisc.initModule;
   322     uMisc.initModule;
   323     uVariables.initModule;
   323     uVariables.initModule;
   324     uConsole.initModule;    // MUST happen after uMisc
   324     uConsole.initModule;    // MUST happen after uMisc
       
   325     uCommands.initModule;
   325 
   326 
   326     uLand.initModule;
   327     uLand.initModule;
   327     uIO.initModule;
   328     uIO.initModule;
   328 
   329 
   329     if complete then
   330     if complete then
   386     end;
   387     end;
   387 
   388 
   388     uIO.freeModule;             //stub
   389     uIO.freeModule;             //stub
   389     uLand.freeModule;
   390     uLand.freeModule;
   390 
   391 
       
   392     uCommands.freeModule;
   391     uConsole.freeModule;
   393     uConsole.freeModule;
   392     uVariables.freeModule;
   394     uVariables.freeModule;
   393     uMisc.freeModule;           // uMisc closes the debug log.
   395     uMisc.freeModule;           // uMisc closes the debug log.
   394 end;
   396 end;
   395 
   397