source: trunk/TransLines.lpr@ 142

Last change on this file since 142 was 130, checked in by chronos, 2 years ago
  • Added: Allow to save/load game in multiple slots.
File size: 881 bytes
RevLine 
[125]1program TransLines;
[2]2
3{$mode objfpc}{$H+}
4
5uses
[39]6 {$IFDEF UNIX}
7 cthreads, clocale,
8 {$ENDIF}
[2]9 Interfaces, // this includes the LCL widgetset
[118]10 Forms, SysUtils, UFormMain, UFormImages, UFormTestCase, UFormTest, Common,
11 UMenu, UControls, UMetroPassenger, UColors, UView, URiver, UCity, UCore,
[130]12 UTestCases, UItems, UScene, USceneGameSlots;
[2]13
14{$R *.res}
15
[62]16{$if declared(UseHeapTrace)}
[20]17const
18 HeapTraceLog = 'heaptrclog.trc';
19{$ENDIF}
20
[2]21begin
[62]22 {$if declared(UseHeapTrace)}
[20]23 // Heap trace
24 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
25 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
26 {$ENDIF}
27
[2]28 RequireDerivedFormResource := True;
[62]29 Application.Scaled:=True;
[2]30 Application.Initialize;
[118]31 Application.CreateForm(TCore, Core);
[2]32 Application.CreateForm(TFormMain, FormMain);
[41]33 Application.CreateForm(TFormImages, FormImages);
[2]34 Application.Run;
35end.
36
Note: See TracBrowser for help on using the repository browser.