Commit Graph

1658 Commits

Author SHA1 Message Date
Jindra Petřík
0a60be9246 Support for comma operator in switch case statements 2021-02-08 20:15:19 +01:00
Jindra Petřík
3f2e075ee9 Fixed goto/for detection 2021-02-08 20:15:19 +01:00
Jindra Petřík
c5f992b675 Fixed goto/for detectionFixed goto/for detection 2021-02-08 20:15:19 +01:00
Jindra Petřík
f30171188d Fixed goto/for detection 2021-02-08 20:15:19 +01:00
Jindra Petřík
22c2206aec Fixed goto/for detection 2021-02-08 20:15:19 +01:00
Jindra Petřík
6a94a5c274 AS3 - more tests, added classes tests back 2021-02-08 20:15:19 +01:00
Jindra Petřík
b4b9a7fe8e goto detection improvements 2021-02-08 20:15:19 +01:00
Jindra Petřík
fe44fe16f4 goto detection improvements 2021-02-08 20:15:19 +01:00
Jindra Petřík
054b0dc9f7 goto detection... still does not work 2021-02-08 20:15:19 +01:00
Jindra Petřík
5d7924fa2c reverting the change about for loops / goto detection :-(
it does not work as intended
2021-02-08 20:15:19 +01:00
Jindra Petřík
15e69bbf75 AS3: Incorrect handling of strict equals operator in if vs switch resulting in §§pop 2021-02-08 20:15:19 +01:00
Jindra Petřík
da1423a254 New test classes for fors, updated AS3Generator for tests 2021-02-08 20:15:19 +01:00
Jindra Petřík
cade4549fb AS3 test methods separated to classes, Fixed AS3: get/set slot for global scope 2021-02-08 20:15:19 +01:00
Jindra Petřík
a6d87ef0bb Pushes all to stack before going goto. 2021-02-08 20:15:19 +01:00
Jindra Petřík
dc18fad2b3 Improved for continue / goto detection 2021-02-08 20:15:19 +01:00
Jindra Petřík
96f3aee198 Try for new getprecontinues method for for detection 2021-02-08 20:15:19 +01:00
Jindra Petřík
07acaaed74 Making internal flash viewer a default viewer + move FP option switch to Advanced settings / others 2021-01-12 14:36:10 +01:00
Jindra Petřík
b40c51634a Escaping in P-code Graphviz exporter (Problems with graphs containing backslash strings) 2021-01-09 16:11:18 +01:00
Jindra Petřík
61b9660b49 GraphTargetVisitorInterface for visiting model 2021-01-09 15:00:20 +01:00
Jindra Petřík
819a739397 GraphTargetVisitorInterface for visiting model 2021-01-09 13:00:30 +01:00
Jindra Petřík
4926cb04d0 Show §§findproperty when neccessary (AS3) 2021-01-09 08:43:45 +01:00
Jindra Petřík
637f52091a setglobalslot as §§ 2021-01-09 08:34:54 +01:00
Jindra Petřík
60d91f7782 Use object.§§slot[index] syntax instead of /* UnknownSlot */ comment when slot cannot be determined (AS3) 2021-01-09 08:34:27 +01:00
Jindra Petřík
07c3cc3cfb push unresolved ifs object back 2021-01-09 07:21:29 +01:00
Jindra Petřík
ea51fdea9a #1379 AS3 - better handling local registers postincrement/decrement 2021-01-06 17:13:00 +01:00
Jindra Petřík
d292c462c0 Fix build (beanshell) 2021-01-06 10:34:13 +01:00
Jindra Petřík
d5ebf47746 StringBuilder isEmpty fix (available for newer javas) 2021-01-06 10:04:33 +01:00
Jindra Petřík
dabb55d21d #1548 TTF export - correctly handle duplicate unicode codes
#1548 correctly handle empty generated file names
2021-01-06 09:38:43 +01:00
Jindra Petřík
732d05444a Building does not require Naashorn - uses Beanshell instead 2021-01-06 08:44:04 +01:00
Jindra Petřík
2b64e72014 Correct body index for script initializer in P-code debugging 2021-01-06 08:43:04 +01:00
Jindra Petřík
6637b11d67 Correct line matching in debugger of AS3 after using deobfuscation 2021-01-04 18:35:47 +01:00
Jindra Petřík
da34fcbd04 Putting XML import/export export back in as it seems to run fine. 2021-01-04 17:56:13 +01:00
Jindra Petřík
ac66eb740b Fixed: Correct AS/P-code matching in editor for AS3 after using deobfuscation 2021-01-04 10:10:23 +01:00
Jindra Petřík
520e7ae735 Merge branch 'dev' into dev 2021-01-01 08:51:43 +01:00
nickgkg
518a4e21b1 also fix serialization 2021-01-01 08:40:33 +01:00
nickgkg
01fee76d81 correctly deserialize negatives 2021-01-01 08:40:33 +01:00
Jindra Petřík
b20eeafe53 Enable back detecting installed fonts. (FFDec must be restarted to refresh such list) 2021-01-01 01:08:32 +01:00
Jindra Petřík
653879b589 removed unused import 2021-01-01 01:08:32 +01:00
曉之車
6c16f6cd5f Update Swf2Exe.bin
Fix icon indistinct problem
2021-01-01 01:07:49 +01:00
曉之車
cdff0c081a chinese translate upadate
ffdec_11.3.0 version
2021-01-01 01:07:48 +01:00
Jindra Petřík
5a68dc63b6 fixed tests, removed jacoco 2021-01-01 01:07:47 +01:00
Jindra Petřík
ca21337d9f java 9 compliance
- base64, bytearrtohex, installed fonts, xml sax parser
2021-01-01 01:07:43 +01:00
Jindra Petřík
90537ad1da fixed tests, removed jacoco 2020-04-25 20:08:55 +02:00
Jindra Petřík
a63e8f7623 java 9 compliance
- base64, bytearrtohex, installed fonts, xml sax parser
2020-04-25 19:05:59 +02:00
Jindra Petřík
317308a640 #1378 Transparent background on PNG/GIF sprite export,
SWF background on shape BMP export
2020-04-25 17:11:07 +02:00
rebane2001
7f9041c6f8 A fix to make exported sprites transparent 2020-04-25 17:11:07 +02:00
nename0
76724b9375 Fix access to protected members with super (#75)
* fix access to protected members with super

* prevent overridden function to be found before the overriding
2020-04-25 17:11:07 +02:00
nename0
d69d81ea3f the p-code generation of lookupswitch now correctly does -1 from the count of cases (#74) 2020-04-25 17:11:07 +02:00
florent.fauchille
419fd9590e NPE on runtime when installedFontsByFamily is null (#73)
* NPE on runtime when installedFontsByFamily is `null`

When running the command `java -jar dist/ffdec.jar -export fla <out> <file.swf>`, it crashes with stacktrace:
```
java.lang.NullPointerException                                                                                                                                                                                                                                           
        at com.jpexs.decompiler.flash.tags.base.FontTag.isFontFamilyInstalled(FontTag.java:310)                                                                                                                                                                          
        at com.jpexs.decompiler.flash.xfl.XFLConverter.convertFonts(XFLConverter.java:2366)                                                                                                                                                                              
        at com.jpexs.decompiler.flash.xfl.XFLConverter.convertSWF(XFLConverter.java:3363)
        at com.jpexs.decompiler.flash.SWF.exportXfl(SWF.java:2506)
        at com.jpexs.decompiler.flash.console.CommandLineArgumentParser.exportFla(CommandLineArgumentParser.java:2410)
        at com.jpexs.decompiler.flash.console.CommandLineArgumentParser.parseExport(CommandLineArgumentParser.java:2349)
        at com.jpexs.decompiler.flash.console.CommandLineArgumentParser.parseArguments(CommandLineArgumentParser.java:891)
        at com.jpexs.decompiler.flash.gui.Main.main(Main.java:1976)

```

Null checking `installedFontsByFamily` fixes the issue and the SWF to FLA is successful.

* Add ensureLoaded()  for isFontFamilyInstalled

With ensureLoaded() instead of null check
2020-04-25 17:11:07 +02:00
Jindra Petřík
5733cd9051 #1449 Updated Turkish translation 2020-04-25 17:11:07 +02:00