set decompiled AS2 script without a worker when it is found in the cache

This commit is contained in:
honfika@gmail.com
2016-03-12 13:58:18 +01:00
parent 28d0e03b34
commit c48356fc08
2 changed files with 41 additions and 13 deletions

View File

@@ -2568,6 +2568,15 @@ public final class SWF implements SWFContainerItem, Timelined {
}
}
public static CachedScript getFromCache(ASMSource src) {
SWF swf = src.getSwf();
if (swf.as2Cache.contains(src)) {
return swf.as2Cache.get(src);
}
return null;
}
public static CachedScript getCached(ASMSource src, ActionList actions) throws InterruptedException {
SWF swf = src.getSwf();
if (swf.as2Cache.contains(src)) {