Issue #710 Information about deobfuscation settings in the error comment

This commit is contained in:
Jindra Petřík
2014-11-05 19:04:49 +01:00
parent 881e32e349
commit 7027ed6da7
6 changed files with 19 additions and 2 deletions
@@ -919,6 +919,8 @@ public class Main {
UIManager.put("ColorChooser.swatchesNameText", AppStrings.translate("ColorChooser.swatchesNameText"));
UIManager.put("ColorChooser.swatchesRecentText", AppStrings.translate("ColorChooser.swatchesRecentText"));
UIManager.put("ColorChooser.sampleText", AppStrings.translate("ColorChooser.sampleText"));
Helper.decompilationErrorAdd = AppStrings.translate(Configuration.autoDeobfuscate.get()?"deobfuscation.comment.failed":"deobfuscation.comment.tryenable");
}
/**
@@ -1314,6 +1314,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
}
public void autoDeobfuscateChanged() {
Helper.decompilationErrorAdd = AppStrings.translate(Configuration.autoDeobfuscate.get()?"deobfuscation.comment.failed":"deobfuscation.comment.tryenable");
clearCache();
if (abcPanel != null) {
abcPanel.reload();
@@ -524,3 +524,7 @@ menu.debugger.showlog = Show Log
message.debugger = This SWF Debugger can only be used to print messages to log window, browser console or alerts.\r\nIt is NOT designed for features like step code, breakpoints etc.
contextmenu.addTag = Add tag
deobfuscation.comment.tryenable = Tip: You can try enabling "Automatic deobfucation" in Settings
deobfuscation.comment.failed = Deobfuscation is activated but decompilation still failed. If the file is NOT obfuscated, disable "Automatic deobfucation" for better results.