* use sametext instead of converting case

This commit is contained in:
Michaël Van Canneyt 2025-04-07 14:50:24 +02:00
parent 6e964d153e
commit 5130e82af0
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ begin
end; end;
tmp:=ChangeFileExt(ExtractFileName(params.InputFiles[0]), tmp:=ChangeFileExt(ExtractFileName(params.InputFiles[0]),
'.jar'); '.jar');
if lowercase(tmp)=lowercase(params.InputFiles[0]) then if sametext(tmp,params.InputFiles[0]) then
tmp:=tmp+'.jar'; tmp:=tmp+'.jar';
params.OutputFile:=tmp; params.OutputFile:=tmp;
end; end;

View File

@ -161,7 +161,7 @@ begin
end; end;
tmp:=ChangeFileExt(ExtractFileName(params.InputFiles[0]), tmp:=ChangeFileExt(ExtractFileName(params.InputFiles[0]),
ObjFormats[CurrentTarget.objformat].ext); ObjFormats[CurrentTarget.objformat].ext);
if lowercase(tmp)=lowercase(params.InputFiles[0]) then if SameText(tmp,params.InputFiles[0]) then
tmp:=tmp+ObjFormats[CurrentTarget.objformat].ext; tmp:=tmp+ObjFormats[CurrentTarget.objformat].ext;
params.OutputFile:=tmp; params.OutputFile:=tmp;
end; end;