From f977c1c3810f0c89dfd9559dfa2d6fd87ae0d238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Fri, 23 Oct 2015 09:51:06 +0200 Subject: [PATCH] Commandline info document class deobfuscation fix --- .../flash/console/CommandLineArgumentParser.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java index 0aa124510..e5a6648b5 100644 --- a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java +++ b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java @@ -117,6 +117,7 @@ import com.jpexs.decompiler.flash.types.RECT; import com.jpexs.decompiler.flash.types.sound.SoundFormat; import com.jpexs.decompiler.flash.xfl.FLAVersion; import com.jpexs.decompiler.graph.CompilationException; +import com.jpexs.decompiler.graph.DottedChain; import com.jpexs.helpers.CancellableWorker; import com.jpexs.helpers.Helper; import com.jpexs.helpers.Path; @@ -2716,8 +2717,18 @@ public class CommandLineArgumentParser { pw.println("[as3]"); pw.println("ABCtagCount=" + swf.getAbcList().size()); pw.println("packsCount=" + swf.getAS3Packs().size()); - String dc = swf.getDocumentClass(); - pw.println("documentClass=" + (dc == null ? "" : IdentifiersDeobfuscation.printIdentifier(true, dc))); + String dcs = swf.getDocumentClass(); + if (dcs != null) { + if (dcs.contains(".")) { + DottedChain dc = new DottedChain(dcs.split("\\.")); + pw.println("documentClass=" + dc.toPrintableString(true)); + } else { + pw.println("documentClass=" + IdentifiersDeobfuscation.printIdentifier(true, dcs)); + } + } else { + pw.println("documentClass="); + } + pw.println(); pw.flush(); }