hedgewars/hwengine.pas
changeset 11644 f17df78181d8
parent 11631 b3db79b56f28
child 11685 a2e86a867fb5
equal deleted inserted replaced
11643:3bff941c035f 11644:f17df78181d8
   455     uSound.preInitModule;
   455     uSound.preInitModule;
   456 end;
   456 end;
   457 
   457 
   458 procedure initEverything (complete:boolean);
   458 procedure initEverything (complete:boolean);
   459 begin
   459 begin
   460     uUtils.initModule(complete);    // opens the debug file, must be the first
       
   461     uVariables.initModule;          // inits all global variables
       
   462     uCommands.initModule;           // helps below
       
   463     uCommandHandlers.initModule;    // registers all messages from frontend
       
   464 
       
   465     uLand.initModule;               // computes land
       
   466     uLandPainted.initModule;        // computes drawn land
       
   467     uIO.initModule;                 // sets up sockets
       
   468 
       
   469     PathPrefix:= PathPrefix + #0;
   460     PathPrefix:= PathPrefix + #0;
   470     UserPathPrefix:= UserPathPrefix + #0;
   461     UserPathPrefix:= UserPathPrefix + #0;
   471     uPhysFSLayer.initModule(@PathPrefix[1], @UserPathPrefix[1]);
   462     uPhysFSLayer.initModule(@PathPrefix[1], @UserPathPrefix[1]);
   472     PathPrefix:= copy(PathPrefix, 1, length(PathPrefix) - 1);
   463     PathPrefix:= copy(PathPrefix, 1, length(PathPrefix) - 1);
   473     UserPathPrefix:= copy(UserPathPrefix, 1, length(UserPathPrefix) - 1);
   464     UserPathPrefix:= copy(UserPathPrefix, 1, length(UserPathPrefix) - 1);
       
   465 
       
   466     uUtils.initModule(complete);    // opens the debug file, must be the first
       
   467     uVariables.initModule;          // inits all global variables
       
   468     uCommands.initModule;           // helps below
       
   469     uCommandHandlers.initModule;    // registers all messages from frontend
       
   470 
       
   471     uLand.initModule;               // computes land
       
   472     uLandPainted.initModule;        // computes drawn land
       
   473     uIO.initModule;                 // sets up sockets
   474 
   474 
   475     uScript.initModule;
   475     uScript.initModule;
   476 
   476 
   477     if complete then
   477     if complete then
   478     begin
   478     begin