mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-07 08:07:17 +01:00
* dosbox_wrapper made to add automatically .exe to the file name, if it is missing
git-svn-id: branches/i8086@24134 -
This commit is contained in:
parent
59dd5ee1d0
commit
e76cee64cc
@ -55,13 +55,16 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure CopyFile(const ASrcFileName, ADestFileName: string);
|
||||
procedure CopyFile(ASrcFileName, ADestFileName: string);
|
||||
var
|
||||
SrcF, DestF: File;
|
||||
OldFileMode: Integer;
|
||||
Buf: array [0..4095] of Byte;
|
||||
BytesRead: Integer;
|
||||
begin
|
||||
Writeln('CopyFile ', ASrcFileName, '->', ADestFileName);
|
||||
if not AnsiEndsText('.exe', ASrcFileName) then
|
||||
ASrcFileName := ASrcFileName + '.exe';
|
||||
OldFileMode := FileMode;
|
||||
try
|
||||
AssignFile(SrcF, ASrcFileName);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user