1 | {$INCLUDE Switches.inc}
|
---|
2 | program Integrated;
|
---|
3 |
|
---|
4 | uses
|
---|
5 | {$IFDEF UNIX}
|
---|
6 | cthreads, clocale,
|
---|
7 | {$ENDIF}
|
---|
8 | Forms, Interfaces, SysUtils, Protocol, GameServer, Direct, Start, Messg, Inp,
|
---|
9 | Back, Log, LocalPlayer, ClientTools, Tribes, IsoEngine, Term, CityScreen, Nego,
|
---|
10 | NoTerm, ScreenTools, Directories;
|
---|
11 |
|
---|
12 | {$if declared(UseHeapTrace)}
|
---|
13 | const
|
---|
14 | HeapTraceLog = 'heaptrclog.trc';
|
---|
15 | {$ENDIF}
|
---|
16 |
|
---|
17 | {$R *.res}
|
---|
18 |
|
---|
19 | begin
|
---|
20 | {$if declared(UseHeapTrace)}
|
---|
21 | // Heap trace
|
---|
22 | DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
---|
23 | SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
---|
24 | {$ENDIF}
|
---|
25 |
|
---|
26 | DotNetClient := nil;
|
---|
27 | Application.Initialize;
|
---|
28 | Application.Title := 'C-evo';
|
---|
29 | Application.TaskBarBehavior := tbMultiButton;
|
---|
30 | Directories.UnitInit;
|
---|
31 | ScreenTools.UnitInit;
|
---|
32 | Application.CreateForm(TDirectDlg, DirectDlg);
|
---|
33 | Application.CreateForm(TStartDlg, StartDlg);
|
---|
34 | Application.CreateForm(TMessgDlg, MessgDlg);
|
---|
35 | Application.CreateForm(TInputDlg, InputDlg);
|
---|
36 | Application.CreateForm(TBackground, Background);
|
---|
37 | Application.CreateForm(TLogDlg, LogDlg);
|
---|
38 | Application.Run;
|
---|
39 | ScreenTools.UnitDone;
|
---|
40 | end.
|
---|