mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-17 21:48:12 +00:00
Fixed: #2474 Gotos incorrectly decompiled
This commit is contained in:
@@ -283,12 +283,13 @@ public class ActionScript3AssembledDecompileTest extends ActionScript3DecompileT
|
||||
+ "if(b)\r\n"
|
||||
+ "{\r\n"
|
||||
+ "trace(\"a\");\r\n"
|
||||
+ "addr39:\r\n"
|
||||
+ "trace(\"c\");\r\n"
|
||||
+ "}\r\n"
|
||||
+ "break;\r\n"
|
||||
+ "}\r\n"
|
||||
+ "trace(\"b\");\r\n"
|
||||
+ "trace(\"c\");\r\n"
|
||||
+ "break;\r\n"
|
||||
+ "§§goto(addr39);\r\n"
|
||||
+ "case 2:\r\n"
|
||||
+ "trace(\"case2\");\r\n"
|
||||
+ "}\r\n",
|
||||
|
||||
@@ -726,7 +726,7 @@ public class ActionScript3ClassTest extends ActionScript3DecompileTestBase {
|
||||
public void testHaxeStaticVars() {
|
||||
/*
|
||||
Static vars in Haxe are initialized in script initializer (normal flash uses class initializer)
|
||||
*/
|
||||
*/
|
||||
decompileScriptPack("haxe", "tests_classes.TestStaticVars", "package tests_classes\n"
|
||||
+ "{\n"
|
||||
+ " public class TestStaticVars\n"
|
||||
|
||||
@@ -61,7 +61,7 @@ public class AS3Generator {
|
||||
sortedPacks.put(pack.getClassPath().toRawString(), pack);
|
||||
}
|
||||
s.append("/*\r\n"
|
||||
+ " * Copyright (C) 2010-2024 JPEXS, All rights reserved.\r\n"
|
||||
+ " * Copyright (C) 2010-2025 JPEXS, All rights reserved.\r\n"
|
||||
+ " * \r\n"
|
||||
+ " * This library is free software; you can redistribute it and/or\r\n"
|
||||
+ " * modify it under the terms of the GNU Lesser General Public\r\n"
|
||||
|
||||
Reference in New Issue
Block a user