source: tags/1.3.1/Integrated.lpr

Last change on this file was 426, checked in by chronos, 2 years ago
  • Fixed: Show correctly buttons on task bar with localized captions in windowed mode on Windows.
File size: 1.1 KB
Line 
1{$INCLUDE Switches.inc}
2program Integrated;
3
4uses
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)}
13const
14 HeapTraceLog = 'heaptrclog.trc';
15{$ENDIF}
16
17{$R *.res}
18
19begin
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;
40end.
Note: See TracBrowser for help on using the repository browser.