source: tags/1.2.0/Game2048.lpr

Last change on this file was 54, checked in by chronos, 5 years ago
  • Modified: Use just 2048 for application name.
File size: 785 bytes
Line 
1program Game2048;
2
3{$mode objfpc}{$H+}
4
5uses
6 {$IFDEF UNIX}
7 cthreads, clocale,
8 {$ENDIF}
9 Interfaces, SysUtils,// this includes the LCL widgetset
10 Forms, UGame, Common, UFormSettings, UFormMain, UCore, UFormHelp,
11 UFormComputer, UFormHistory
12 { you can add units after this };
13
14{$R *.res}
15
16{$if declared(UseHeapTrace)}
17const
18 HeapTraceLog = 'heaptrclog.trc';
19{$ENDIF}
20
21
22begin
23 {$if declared(UseHeapTrace)}
24 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
25 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
26 {$ENDIF}
27 RequireDerivedFormResource:=True;
28 Application.Title:='2048';
29 Application.Scaled := True;
30 Application.Initialize;
31 Application.CreateForm(TFormMain, FormMain);
32 Application.CreateForm(TCore, Core);
33 Application.Run;
34end.
35
Note: See TracBrowser for help on using the repository browser.