mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-20 09:55:35 +00:00
AS1/2 and AS3 now share common decompiling method
This commit is contained in:
@@ -19,7 +19,7 @@ package com.jpexs.decompiler.flash.action.swf4;
|
||||
import com.jpexs.decompiler.flash.action.Action;
|
||||
import com.jpexs.decompiler.flash.action.treemodel.DirectValueTreeItem;
|
||||
import com.jpexs.decompiler.flash.action.treemodel.SetPropertyTreeItem;
|
||||
import com.jpexs.decompiler.flash.action.treemodel.TreeItem;
|
||||
import com.jpexs.decompiler.flash.graph.GraphTargetItem;
|
||||
import java.util.List;
|
||||
import java.util.Stack;
|
||||
|
||||
@@ -35,10 +35,10 @@ public class ActionSetProperty extends Action {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void translate(Stack<TreeItem> stack, List<TreeItem> output, java.util.HashMap<Integer, String> regNames) {
|
||||
TreeItem value = stack.pop();
|
||||
TreeItem index = stack.pop();
|
||||
TreeItem target = stack.pop();
|
||||
public void translate(Stack<GraphTargetItem> stack, List<GraphTargetItem> output, java.util.HashMap<Integer, String> regNames) {
|
||||
GraphTargetItem value = stack.pop();
|
||||
GraphTargetItem index = stack.pop();
|
||||
GraphTargetItem target = stack.pop();
|
||||
int indexInt = 0;
|
||||
if (index instanceof DirectValueTreeItem) {
|
||||
if (((DirectValueTreeItem) index).value instanceof Long) {
|
||||
|
||||
Reference in New Issue
Block a user