Skip to content

Commit

Permalink
* Парсинг информации о версии
Browse files Browse the repository at this point in the history
  • Loading branch information
zamtmn committed Jan 26, 2025
1 parent 9b3983a commit cca03f1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cad_source/zcad/uzcsysinfo.pas
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,14 @@ function GetVersion:TmyFileVersionInfo;
GetPartOfPath(Major,AbbreviatedName,'.');
GetPartOfPath(Minor,AbbreviatedName,'.');
GetPartOfPath(Micro,AbbreviatedName,'.');
GetPartOfPath(Release,AbbreviatedName,'-');
GetPartOfPath(CommitsAfter,AbbreviatedName,'-');
result.major:=pos('-',AbbreviatedName);
if pos('-',AbbreviatedName)>0 then begin
GetPartOfPath(Release,AbbreviatedName,'-');
GetPartOfPath(CommitsAfter,AbbreviatedName,'-');
end else begin
GetPartOfPath(Release,AbbreviatedName,' ');
//GetPartOfPath(CommitsAfter,AbbreviatedName,'-');
end;

TryStrToInt(Major,result.major);
TryStrToInt(Minor,result.Minor);
Expand Down

0 comments on commit cca03f1

Please sign in to comment.