mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 17:50:46 +00:00
Try loading .gfx files if .swf failed to load
This commit is contained in:
@@ -875,14 +875,25 @@ public class Main {
|
||||
//ignore
|
||||
}
|
||||
} else {
|
||||
File f = new File(new File(file).getParentFile(), url);
|
||||
if (f.exists()) {
|
||||
File swf = new File(new File(file).getParentFile(), url);
|
||||
if (swf.exists()) {
|
||||
try {
|
||||
return open(new FileInputStream(f), f.getAbsolutePath(), f.getName());
|
||||
return open(new FileInputStream(swf), swf.getAbsolutePath(), swf.getName());
|
||||
} catch (Exception ex) {
|
||||
//ignore
|
||||
}
|
||||
}
|
||||
// try .gfx if .swf failed
|
||||
if (url.endsWith(".swf")) {
|
||||
File gfx = new File(new File(file).getParentFile(), url.substring(0, url.length()-4)+".gfx");
|
||||
if (gfx.exists()) {
|
||||
try {
|
||||
return open(new FileInputStream(gfx), gfx.getAbsolutePath(), gfx.getName());
|
||||
} catch (Exception ex) {
|
||||
//ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference<SWF> ret = new Reference<>(null);
|
||||
View.execInEventDispatch(new Runnable() {
|
||||
|
||||
Reference in New Issue
Block a user