Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RetroNick2020 committed Dec 24, 2023
1 parent 4f94bd8 commit ab7579f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rtbinobj.pas
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
objlib,hunklib,bsavelib,cofflib;

Const
ProgramName = 'RtBinObj v1.7 - Released December 21 - 2023 By RetroNick';
ProgramName = 'RtBinObj v1.8 - Released December 24 - 2023 By RetroNick';

CompTP = 0;
CompTC = 1;
Expand Down
10 changes: 8 additions & 2 deletions rtbinobjform.pas
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface
LazFileUtils, objlib,hunklib,bsavelib,cofflib;

Const
ProgramName = 'RtBinObj v1.7 By RetroNick - Released December 21 - 2023';
ProgramName = 'RtBinObj v1.8 By RetroNick - Released December 24 - 2023';

type

Expand Down Expand Up @@ -74,12 +74,18 @@ procedure TForm1.SetPublicNames;
var
sname : string;
begin
if ObjModeRadioGroup.ItemIndex = 0 then
if ObjModeRadioGroup.ItemIndex = 0 then //TP
begin
sname:=UpperCase(ExtractFileName(ExtractFileNameWithoutExt(OpenDialog.FileName)));
EditPublicName.Text:=sname;
EditPublicSizeName.Text:=sname+'SIZE';
end
else if ObjModeRadioGroup.ItemIndex = 7 then //TMT
begin
sname:=UpperCase(ExtractFileName(ExtractFileNameWithoutExt(OpenDialog.FileName)));
EditPublicName.Text:=sname;
EditPublicSizeName.Text:='';
end
else
begin
sname:=LowerCase(ExtractFileName(ExtractFileNameWithoutExt(OpenDialog.FileName)));
Expand Down

0 comments on commit ab7579f

Please sign in to comment.