| 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 | Directories.UnitInit;
|
|---|
| 30 | ScreenTools.UnitInit;
|
|---|
| 31 | Application.CreateForm(TDirectDlg, DirectDlg);
|
|---|
| 32 | Application.CreateForm(TStartDlg, StartDlg);
|
|---|
| 33 | Application.CreateForm(TMessgDlg, MessgDlg);
|
|---|
| 34 | Application.CreateForm(TInputDlg, InputDlg);
|
|---|
| 35 | Application.CreateForm(TBackground, Background);
|
|---|
| 36 | Application.CreateForm(TLogDlg, LogDlg);
|
|---|
| 37 | Application.Run;
|
|---|
| 38 | ScreenTools.UnitDone;
|
|---|
| 39 | end.
|
|---|