From 073fc4d0647e42755f7f7bf39e1e8558906cfe8f Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Tue, 7 Apr 2015 10:21:31 +0200 Subject: [PATCH] script export filename fix --- .../decompiler/flash/console/CommandLineArgumentParser.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java index 34bb042e8..e346a78ac 100644 --- a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java +++ b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java @@ -933,9 +933,10 @@ public class CommandLineArgumentParser { System.out.println("Start exporting " + inFile.getName()); } - SWF swf = new SWF(new FileInputStream(inFile), Configuration.parallelSpeedUp.get()); + SWFSourceInfo sourceInfo = new SWFSourceInfo(null, inFile.getAbsolutePath(), inFile.getName()); + SWF swf = new SWF(new FileInputStream(inFile), sourceInfo.getFile(), sourceInfo.getFileTitle(), Configuration.parallelSpeedUp.get()); swf.swfList = new SWFList(); - swf.swfList.sourceInfo = new SWFSourceInfo(null, inFile.getAbsolutePath(), inFile.getName()); + swf.swfList.sourceInfo = sourceInfo; String outDir = outDirBase.getAbsolutePath(); if (!singleFile) { outDir = Path.combine(outDir, inFile.getName());