fixed deobfuscation

Issue #151 option for caching in memory instead of temp files
This commit is contained in:
Jindra Petk
2013-07-08 20:39:02 +02:00
parent 5ed314d0eb
commit 8bfc8ad30f
14 changed files with 135 additions and 39 deletions

View File

@@ -31,6 +31,7 @@ import com.jpexs.decompiler.flash.gui.jna.platform.win32.WinReg;
import com.jpexs.decompiler.flash.gui.jna.platform.win32.WinUser;
import com.jpexs.decompiler.flash.gui.player.FlashPlayerPanel;
import com.jpexs.decompiler.flash.gui.proxy.ProxyFrame;
import com.jpexs.decompiler.flash.helpers.Cache;
import com.jpexs.decompiler.flash.helpers.Helper;
import com.sun.jna.Platform;
import com.sun.jna.WString;
@@ -467,6 +468,12 @@ public class Main {
View.setLookAndFeel();
Configuration.loadFromFile(getConfigFile(), getReplacementsFile());
if ((Boolean) Configuration.getConfig("cacheOnDisk", Boolean.TRUE)) {
Cache.setStorageType(Cache.STORAGE_FILES);
} else {
Cache.setStorageType(Cache.STORAGE_MEMORY);
}
int pos = 0;
if (args.length > 0) {
if (args[0].equals("-debug")) {