source: tags/1.3.9/Integrated.lpr

Last change on this file was 725, checked in by chronos, 3 weeks ago
File size: 1.3 KB
Line 
1{$INCLUDE Switches.inc}
2program Integrated;
3
4uses
5 {$IFDEF UNIX}
6 cthreads, clocale,
7 {$ENDIF}
8 Interfaces, SysUtils, Protocol, GameServer, Direct, Start, Messg, Inp,
9 Back, Log, LocalPlayer, ClientTools, Tribes, IsoEngine, Term, CityScreen, Nego,
10 NoTerm, ScreenTools, Directories, Global,
11 {$IFDEF DPI}Dpi.Forms{$ELSE}Forms{$ENDIF};
12
13{$if declared(UseHeapTrace)}
14const
15 HeapTraceLog = 'heaptrclog.trc';
16{$ENDIF}
17
18{$R *.res}
19
20begin
21 {$if declared(UseHeapTrace)}
22 // Heap trace
23 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
24 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
25 {$ENDIF}
26
27 DotNetClient := nil;
28 Randomize;
29 Application.Initialize;
30 Application.Title := CevoTitle;
31 // Used tbSingleButton mode for task bar as tbMultiButton causes flashing of
32 // taskbar buttons and windows during modal window displaying under Windows OS
33 Application.TaskBarBehavior := TTaskBarBehavior.tbSingleButton;
34 ScreenTools.LoadConfig(AppRegistryKey);
35 Directories.UnitInit;
36 ScreenTools.UnitInit;
37 Application.CreateForm(TDirectDlg, DirectDlg);
38 Application.CreateForm(TStartDlg, StartDlg);
39 Application.CreateForm(TBackground, Background);
40 Application.CreateForm(TLogDlg, LogDlg);
41 Application.Run;
42 ScreenTools.UnitDone;
43end.
Note: See TracBrowser for help on using the repository browser.