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 years ago
parent
commit
4b19f323d5
1 changed files with 2 additions and 1 deletions
  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);