mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-19 03:18:19 +00:00
registers in function fix
This commit is contained in:
@@ -1023,9 +1023,11 @@ public class SWFInputStream extends InputStream {
|
||||
}
|
||||
List<Object> localData2 = (List<Object>) Helper.deepCopy(localData);
|
||||
HashMap<String, GraphTargetItem> vars = (HashMap<String, GraphTargetItem>) localData.get(1);
|
||||
for (int r = 0; r < 256; r++) {
|
||||
if (vars.containsKey("__register" + r)) {
|
||||
vars.remove("__register" + r);
|
||||
if (a instanceof ActionDefineFunction || a instanceof ActionDefineFunction2) {
|
||||
for (int r = 0; r < 256; r++) {
|
||||
if (vars.containsKey("__register" + r)) {
|
||||
vars.remove("__register" + r);
|
||||
}
|
||||
}
|
||||
}
|
||||
a.translate(localData2, stack, output, Graph.SOP_USE_STATIC/*Graph.SOP_SKIP_STATIC*/, path);
|
||||
|
||||
@@ -858,9 +858,11 @@ public class Action implements GraphSourceItem {
|
||||
List<List<GraphTargetItem>> outs = new ArrayList<>();
|
||||
@SuppressWarnings("unchecked")
|
||||
HashMap<String, GraphTargetItem> variables2 = (HashMap<String, GraphTargetItem>) Helper.deepCopy(variables);
|
||||
for (int r = 0; r < 256; r++) {
|
||||
if (variables2.containsKey("__register" + r)) {
|
||||
variables2.remove("__register" + r);
|
||||
if (cnt instanceof ActionDefineFunction || cnt instanceof ActionDefineFunction2) {
|
||||
for (int r = 0; r < 256; r++) {
|
||||
if (variables2.containsKey("__register" + r)) {
|
||||
variables2.remove("__register" + r);
|
||||
}
|
||||
}
|
||||
}
|
||||
for (long size : cnt.getContainerSizes()) {
|
||||
|
||||
Reference in New Issue
Block a user