Skip to content

Commit

Permalink
Various adjustments to latest CGE
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Jun 16, 2024
1 parent cc1b7cf commit d19413a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
7 changes: 6 additions & 1 deletion CastleEngineManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<project name="glinformation"
standalone_source="glinformation.lpr"
standalone_source="glinformation.dpr"
author="Michalis Kamburelis"
>
<version value="1.3.0" code="3" />
<package>
<include path="README.md" />
<include path="COPYING.GPL2.txt" />
</package>
<data exists="false" />
</project>
11 changes: 6 additions & 5 deletions glinformation.lpr → glinformation.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
CastleFilesUtils, CastleLog, CastleApplicationProperties;

var
Window: TCastleWindowBase;
Window: TCastleWindow;

const
Version = '1.2.2';
Version = '1.3.0';
Options: array[0..11] of TOption =
(
(Short: 'h'; Long: 'help'; Argument: oaNone),
Expand Down Expand Up @@ -78,7 +78,7 @@ procedure OptionProc(OptionNum: Integer; HasArgument: boolean;
' double buffered anyway)' +nl+
' --double Double buffered visual (default)' +nl+
nl+
TCastleWindowBase.ParseParametersHelp(StandardParseOptions, true) +nl+
TCastleWindow.ParseParametersHelp +nl+
nl+
SCastleEngineProgramHelpSuffix(ApplicationName, Version, true));
Halt;
Expand All @@ -103,10 +103,11 @@ procedure OptionProc(OptionNum: Integer; HasArgument: boolean;

begin
ApplicationProperties.Version := Version;
Window := TCastleWindowBase.Create(Application);
Window := TCastleWindow.Create(Application);
Window.Visible := false;

{ parse params }
Window.ParseParameters(StandardParseOptions);
Window.ParseParameters;
Parameters.Parse(Options, @OptionProc, nil);
if Parameters.High <> 0 then
raise EInvalidParams.CreateFmt('Excessive parameter "%s"', [Parameters[1]]);
Expand Down
2 changes: 1 addition & 1 deletion glinformation.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</RequiredPackages>
<Units Count="1">
<Unit0>
<Filename Value="glinformation.lpr"/>
<Filename Value="glinformation.dpr"/>
<IsPartOfProject Value="True"/>
<UsageCount Value="20"/>
</Unit0>
Expand Down

0 comments on commit d19413a

Please sign in to comment.