Changeset 28 for trunk/tunneler.lpr


Ignore:
Timestamp:
Oct 3, 2011, 8:17:16 PM (13 years ago)
Author:
george
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tunneler.lpr

    r21 r28  
    99  {$ENDIF}{$ENDIF}
    1010  Interfaces, // this includes the LCL widgetset
    11   Forms, UCore, TemplateGenerics, CoolTranslator, UPlatform,
     11  Forms, UCore, TemplateGenerics, CoolTranslator, UPlatform, FileUtil, SysUtils,
    1212  UApplicationInfo, URectangle, UPersistentForm, URegistry, UThreading,
    13 UNewGameForm, UMainForm, UMapForm
     13UNewGameForm, UMainForm, UMapForm, UDebugForm, UGameResultsForm
    1414  { you can add units after this };
    1515
    1616{$R *.res}
    1717
     18{$IFDEF DEBUG}
     19const
     20  HeapTraceLog = 'heaptrclog.trc';
     21{$ENDIF}
     22
    1823begin
     24  {$IFDEF DEBUG}
     25  // Heap trace
     26  DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
     27  SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
     28  {$ENDIF}
     29
    1930  Application.Initialize;
    2031  Application.CreateForm(TMainForm, MainForm);
    2132  Application.CreateForm(TMapForm, MapForm);
    2233  Application.CreateForm(TNewGameForm, NewGameForm);
     34  {$IFDEF DEBUG}
     35  Application.CreateForm(TDebugForm, DebugForm);
     36  {$ENDIF}
    2337  Application.Run;
    2438end.
Note: See TracChangeset for help on using the changeset viewer.