Browse Source

* create the output file, using the same name as the input file, but change the extension to .tzx

git-svn-id: branches/z80@44596 -
nickysn 5 năm trước cách đây
mục cha
commit
4b19f323d5
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      utils/ihx2tzx/ihx2tzx.lpr

+ 2 - 1
utils/ihx2tzx/ihx2tzx.lpr

@@ -90,7 +90,8 @@ begin
     Exit;
   end;
   FInputFileName := NonOptions[0];
-  FOutputFileName := 'out.tap';
+  if FOutputFileName = '' then
+    FOutputFileName := ChangeFileExt(FInputFileName, '.tzx');
 
   { add your program here }
   FInputImage.ReadIHXFile(FInputFileName);