source: trunk/Integrated.lpr

Last change on this file was 474, checked in by chronos, 5 months ago
  • Fixed: More high dpi related fixes.
File size: 1.2 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 Application.Initialize;
29 Application.Title := CevoTitle;
30 Application.TaskBarBehavior := TTaskBarBehavior.tbMultiButton;
31 ScreenTools.LoadConfig(AppRegistryKey);
32 Directories.UnitInit;
33 ScreenTools.UnitInit;
34 Application.CreateForm(TDirectDlg, DirectDlg);
35 Application.CreateForm(TStartDlg, StartDlg);
36 Application.CreateForm(TMessgDlg, MessgDlg);
37 Application.CreateForm(TInputDlg, InputDlg);
38 Application.CreateForm(TBackground, Background);
39 Application.CreateForm(TLogDlg, LogDlg);
40 Application.Run;
41 ScreenTools.UnitDone;
42end.
Note: See TracBrowser for help on using the repository browser.