mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-28 11:40:51 +00:00
Fixed #1921 AS3 direct editation - exception on code save - wrong selected ABC
This commit is contained in:
+4
-4
@@ -2640,15 +2640,15 @@ public class ActionScript3Parser {
|
||||
try {
|
||||
SWF.initPlayer();
|
||||
ABC abc = new ABC(null);
|
||||
ActionScript3Parser parser = new ActionScript3Parser(swf.getAbcIndex());
|
||||
AbcIndexing abcIndex = swf.getAbcIndex();
|
||||
abcIndex.selectAbc(abc);
|
||||
ActionScript3Parser parser = new ActionScript3Parser(abcIndex);
|
||||
parser.addScript(new String(Helper.readFile(src), Utf8Helper.charset), src, classPos, scriptIndex);
|
||||
try ( OutputStream fos = new BufferedOutputStream(new FileOutputStream(new File(dst)))) {
|
||||
abc.saveToStream(fos);
|
||||
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
Logger.getLogger(ActionScript3Parser.class
|
||||
.getName()).log(Level.SEVERE, null, ex);
|
||||
Logger.getLogger(ActionScript3Parser.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user