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, uVideoRec |
34 SysUtils, uTypes, uVariables, uCommands, uUtils, uCaptions, uDebug, uCommandHandlers, uLandPainted |
|
35 {$IFDEF USE_VIDEO_RECORDING}, uVideoRec {$ENDIF} |
35 {$IFDEF SDL13}, uTouch{$ENDIF}{$IFDEF ANDROID}, GLUnit{$ENDIF}; |
36 {$IFDEF SDL13}, uTouch{$ENDIF}{$IFDEF ANDROID}, GLUnit{$ENDIF}; |
36 |
37 |
37 {$IFDEF HWLIBRARY} |
38 {$IFDEF HWLIBRARY} |
38 procedure initEverything(complete:boolean); |
39 procedure initEverything(complete:boolean); |
39 procedure freeEverything(complete:boolean); |
40 procedure freeEverything(complete:boolean); |
570 if (ParamCount < 3) then |
574 if (ParamCount < 3) then |
571 GameType:= gmtSyntax |
575 GameType:= gmtSyntax |
572 else |
576 else |
573 if (ParamCount = 3) and ((ParamStr(3) = '--stats-only') or (ParamStr(3) = 'landpreview')) then |
577 if (ParamCount = 3) and ((ParamStr(3) = '--stats-only') or (ParamStr(3) = 'landpreview')) then |
574 internalSetGameTypeLandPreviewFromParameters() |
578 internalSetGameTypeLandPreviewFromParameters() |
|
579 else if ParamCount = cDefaultParamNum then |
|
580 internalStartGameWithParameters() |
|
581 {$IFDEF USE_VIDEO_RECORDING} |
|
582 else if ParamCount = cVideorecParamNum then |
|
583 internalStartVideoRecordingWithParameters() |
|
584 {$ENDIF} |
575 else |
585 else |
576 if (ParamCount = cDefaultParamNum) or (ParamCount = cDefaultParamNum+1) then |
586 playReplayFileWithParameters(); |
577 internalStartGameWithParameters() |
|
578 else |
|
579 playReplayFileWithParameters(); |
|
580 end; |
587 end; |
581 |
588 |
582 //////////////////////////////////////////////////////////////////////////////// |
589 //////////////////////////////////////////////////////////////////////////////// |
583 /////////////////////////////// m a i n //////////////////////////////////////// |
590 /////////////////////////////// m a i n //////////////////////////////////////// |
584 //////////////////////////////////////////////////////////////////////////////// |
591 //////////////////////////////////////////////////////////////////////////////// |