Fixed: #1650 Empty search results from history after reloading SWF file

This commit is contained in:
Jindra Petřík
2021-03-12 22:12:39 +01:00
parent e3d78aff98
commit 4639cb2e1b
3 changed files with 30 additions and 13 deletions
@@ -46,6 +46,7 @@ import com.jpexs.decompiler.flash.gui.debugger.DebuggerTools;
import com.jpexs.decompiler.flash.gui.pipes.FirstInstance;
import com.jpexs.decompiler.flash.gui.proxy.ProxyFrame;
import com.jpexs.decompiler.flash.helpers.SWFDecompilerPlugin;
import com.jpexs.decompiler.flash.tags.DefineBinaryDataTag;
import com.jpexs.decompiler.flash.tags.Tag;
import com.jpexs.decompiler.flash.tags.base.FontTag;
import com.jpexs.decompiler.flash.tags.base.ImportTag;
@@ -720,6 +721,18 @@ public class Main {
});
}
public static void populateSwfs(SWF swfParent, List<SWF> output) {
for (Tag t : swfParent.getTags()) {
if (t instanceof DefineBinaryDataTag) {
DefineBinaryDataTag b = (DefineBinaryDataTag) t;
if (b.innerSwf != null) {
output.add(b.innerSwf);
populateSwfs(b.innerSwf, output);
}
}
}
}
public static SWFList parseSWF(SWFSourceInfo sourceInfo) throws Exception {
SWFList result = new SWFList();