-
Notifications
You must be signed in to change notification settings - Fork 1
/
HoverApp.lpr
executable file
·36 lines (30 loc) · 1.44 KB
/
HoverApp.lpr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ Program to run the game on desktop (standalone) platforms.
Can be auto-generated by "castle-engine generate-program". }
program HoverApp;
{$ifdef MSWINDOWS} {$apptype GUI} {$endif}
{ This adds icons and version info for Windows,
automatically created by "castle-engine compile". }
{$ifdef CASTLE_AUTO_GENERATED_RESOURCES} {$R castle-auto-generated-resources.res} {$endif}
uses
{$ifndef CASTLE_DISABLE_THREADS}
{$info Thread support enabled.}
{$ifdef UNIX} CThreads, {$endif}
{$endif}
CastleApplicationProperties, CastleLog, CastleWindow, GameInitialize;
begin
{ Optionally you can specify here your application version.
It will appear e.g. in the log and in the --help output.
Instead of updating this program file, you can also delete it (and remove
"standalone_source" from the CastleEngineManifest.xml),
and specify <version> inside CastleEngineManifest.xml.
In this case, the program file, with appropriate version set,
will be automatically generated and updated by the build tool. }
ApplicationProperties.Version := '1';
Application.ParseStandardParameters;
{ On standalone, activate log only after parsing command-line options.
This allows to handle --version and --help command-line parameters
without any extra output on Unix.
This also allows to set --log-file from Application.ParseStandardParameters. }
InitializeLog;
Application.MainWindow.OpenAndRun;
end.