mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 23:50:45 +00:00
AS1/2 better deobfuscation
code formatting
This commit is contained in:
@@ -19,6 +19,8 @@ package com.jpexs.decompiler.flash.action.swf4;
|
||||
import com.jpexs.decompiler.flash.action.Action;
|
||||
import com.jpexs.decompiler.flash.action.treemodel.SetVariableTreeItem;
|
||||
import com.jpexs.decompiler.flash.graph.GraphTargetItem;
|
||||
import com.jpexs.decompiler.flash.helpers.Highlighting;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Stack;
|
||||
|
||||
@@ -34,9 +36,11 @@ public class ActionSetVariable extends Action {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void translate(Stack<GraphTargetItem> stack, List<GraphTargetItem> output, java.util.HashMap<Integer, String> regNames) {
|
||||
public void translate(Stack<GraphTargetItem> stack, List<GraphTargetItem> output, java.util.HashMap<Integer, String> regNames, HashMap<String, GraphTargetItem> variables, HashMap<String, GraphTargetItem> functions) {
|
||||
GraphTargetItem value = stack.pop();
|
||||
GraphTargetItem name = stack.pop();
|
||||
output.add(new SetVariableTreeItem(this, name, value));
|
||||
SetVariableTreeItem svt = new SetVariableTreeItem(this, name, value);
|
||||
variables.put(Highlighting.stripHilights(name.toStringNoQuotes(regNames, variables)), value);
|
||||
output.add(svt);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user