hedgewars/hwengine.pas
changeset 7304 8b3575750cd2
parent 7186 013deb83086b
child 11317 62287d4044e7
equal deleted inserted replaced
7301:bea42438a2ec 7304:8b3575750cd2
    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, uInputHandler, uSound,
    32 uses SDLh, uMisc, uConsole, uGame, uConsts, uLand, uAmmos, uVisualGears, uGears, uStore, uWorld, uInputHandler, uSound,
    33      uScript, uTeams, uStats, uIO, uLocale, uChat, uAI, uAIMisc, uRandom, uLandTexture, uCollisions,
    33      uScript, uTeams, uStats, uIO, uLocale, uChat, uAI, uAIMisc, uRandom, uLandTexture, uCollisions,
    34      SysUtils, uTypes, uVariables, uCommands, uUtils, uCaptions, uDebug, uCommandHandlers, uLandPainted
    34      SysUtils, uTypes, uVariables, uCommands, uUtils, uCaptions, uDebug, uCommandHandlers, uLandPainted, uTextures
    35      {$IFDEF SDL13}, uTouch{$ENDIF}{$IFDEF ANDROID}, GLUnit{$ENDIF};
    35      {$IFDEF SDL13}, uTouch{$ENDIF}{$IFDEF ANDROID}, GLUnit{$ENDIF};
    36 
    36 
    37 {$IFDEF HWLIBRARY}
    37 {$IFDEF HWLIBRARY}
    38 procedure initEverything(complete:boolean);
    38 procedure initEverything(complete:boolean);
    39 procedure freeEverything(complete:boolean);
    39 procedure freeEverything(complete:boolean);
   410         uGears.initModule;
   410         uGears.initModule;
   411         uInputHandler.initModule;
   411         uInputHandler.initModule;
   412         //uLandGraphics does not need initialization
   412         //uLandGraphics does not need initialization
   413         //uLandObjects does not need initialization
   413         //uLandObjects does not need initialization
   414         //uLandTemplates does not need initialization
   414         //uLandTemplates does not need initialization
       
   415         uTextures.initModule;
   415         uLandTexture.initModule;
   416         uLandTexture.initModule;
   416         //uLocale does not need initialization
   417         //uLocale does not need initialization
   417         uRandom.initModule;
   418         uRandom.initModule;
   418         uScript.initModule;
   419         uScript.initModule;
   419         uSound.initModule;
   420         uSound.initModule;
   459     end;
   460     end;
   460 
   461 
   461     uIO.freeModule;
   462     uIO.freeModule;
   462     uLand.freeModule;
   463     uLand.freeModule;
   463     uLandPainted.freeModule;
   464     uLandPainted.freeModule;
       
   465     uTextures.freeModule;
   464 
   466 
   465     uCommandHandlers.freeModule;
   467     uCommandHandlers.freeModule;
   466     uCommands.freeModule;
   468     uCommands.freeModule;
   467     uConsole.freeModule;
   469     uConsole.freeModule;
   468     uVariables.freeModule;
   470     uVariables.freeModule;