Skip to content

Commit

Permalink
Merge pull request #10 from guimaraes-lucas/master
Browse files Browse the repository at this point in the history
Solve the compilation problem in DX Berlin
  • Loading branch information
snakeice authored Nov 18, 2019
2 parents 68bcfd3 + 54b8e73 commit c291474
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/core/Boss.Modules.PackageProcessor.pas
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ TBossPackageProcessor = class

procedure LoadTools(AProjectPath: string);
procedure MakeLink(AProjectPath, AEnv: string);
procedure DoLoadBpls(ABpls: TArray<string>);
procedure DoLoadBpls(ABpls: TStringDynArray);

constructor Create;
public
Expand Down Expand Up @@ -149,7 +149,9 @@ function TBossPackageProcessor.GetBplList: TStringDynArray;
LOrderFileName: string;
LOrder: TStringList;
LIndex: Integer;
I: Integer;
begin
Result := Nil;
if not DirectoryExists(GetEnv(C_ENV_BPL)) then
Exit();

Expand All @@ -163,7 +165,9 @@ function TBossPackageProcessor.GetBplList: TStringDynArray;
for LIndex := 0 to LOrder.Count - 1 do
LOrder.Strings[LIndex] := GetEnv(C_ENV_BPL) + TPath.DirectorySeparatorChar + LOrder.Strings[LIndex];

Result := LOrder.ToStringArray;
SetLength(Result, LOrder.Count);
for I := 0 to LOrder.Count - 1 do
Result[I] := LOrder[I];
finally
LOrder.Free;
end;
Expand Down Expand Up @@ -198,7 +202,7 @@ procedure TBossPackageProcessor.LoadBpls;
DoLoadBpls(LBpls);
end;

procedure TBossPackageProcessor.DoLoadBpls(ABpls: TArray<string>);
procedure TBossPackageProcessor.DoLoadBpls(ABpls: TStringDynArray);
var
LBpl: string;
LFlag: Integer;
Expand Down

0 comments on commit c291474

Please sign in to comment.