From 906881e0964a46847e52a05f71598de7a49414fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 26 Apr 2015 09:32:18 +0200 Subject: [PATCH] Flash lib path error message fix --- .../flash/abc/avm2/parser/script/ActionScriptParser.java | 2 +- .../test/com/jpexs/decompiler/flash/DirectEditingTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScriptParser.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScriptParser.java index d31698a88..ef6a79a69 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScriptParser.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScriptParser.java @@ -2401,7 +2401,7 @@ public class ActionScriptParser { private static void initPlayer() throws IOException, InterruptedException { if (playerABCs.isEmpty()) { if (Configuration.getPlayerSWC() == null) { - throw new IOException("Player SWC library not found, please place it to " + Configuration.getPlayerSWC()); + throw new IOException("Player SWC library not found, please place it to " + Configuration.getFlashLibPath()); } SWC swc = new SWC(new FileInputStream(Configuration.getPlayerSWC())); SWF swf = new SWF(swc.getSWF("library.swf"), true); diff --git a/libsrc/ffdec_lib/test/com/jpexs/decompiler/flash/DirectEditingTest.java b/libsrc/ffdec_lib/test/com/jpexs/decompiler/flash/DirectEditingTest.java index 0e3d149e5..3f4bb176e 100644 --- a/libsrc/ffdec_lib/test/com/jpexs/decompiler/flash/DirectEditingTest.java +++ b/libsrc/ffdec_lib/test/com/jpexs/decompiler/flash/DirectEditingTest.java @@ -59,7 +59,7 @@ public class DirectEditingTest extends FileTestBase { public void testDirectEditing(String filePath) throws IOException, InterruptedException, AVM2ParseException, CompilationException { File playerSWC = Configuration.getPlayerSWC(); if (playerSWC == null) { - throw new IOException("Player SWC library not found, please place it to " + Configuration.getPlayerSWC()); + throw new IOException("Player SWC library not found, please place it to " + Configuration.getFlashLibPath()); } try { SWF swf = new SWF(new BufferedInputStream(new FileInputStream(filePath)), false);