mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 05:40:45 +00:00
Fixed small issues
This commit is contained in:
@@ -588,8 +588,10 @@ public class SWFInputStream extends InputStream {
|
||||
}
|
||||
if (goesPrev) {
|
||||
} else {
|
||||
for (int i = 0; i < ip; i++) {
|
||||
retdups.remove(0);
|
||||
if (!retdups.isEmpty()) {
|
||||
for (int i = 0; i < ip; i++) {
|
||||
retdups.remove(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
List<Action> ret = new ArrayList<Action>();
|
||||
|
||||
@@ -38,7 +38,7 @@ public class ActionGetVariable extends Action {
|
||||
@Override
|
||||
public void translate(Stack<GraphTargetItem> stack, List<GraphTargetItem> output, java.util.HashMap<Integer, String> regNames, HashMap<String, GraphTargetItem> variables, HashMap<String, GraphTargetItem> functions) {
|
||||
GraphTargetItem name = stack.pop();
|
||||
GraphTargetItem computedVal = variables.get(Highlighting.stripHilights(name.toStringNoQuotes()));
|
||||
GraphTargetItem computedVal = variables.get(Highlighting.stripHilights(name.toStringNoQuotes(null)));
|
||||
GetVariableTreeItem gvt = new GetVariableTreeItem(this, name);
|
||||
gvt.setComputedValue(computedVal);
|
||||
stack.push(gvt);
|
||||
|
||||
@@ -40,7 +40,7 @@ public class ActionSetVariable extends Action {
|
||||
GraphTargetItem value = stack.pop();
|
||||
GraphTargetItem name = stack.pop();
|
||||
SetVariableTreeItem svt = new SetVariableTreeItem(this, name, value);
|
||||
variables.put(Highlighting.stripHilights(name.toStringNoQuotes(regNames, variables)), value);
|
||||
variables.put(Highlighting.stripHilights(name.toStringNoQuotes(null)), value);
|
||||
output.add(svt);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ public class ActionCallFunction extends Action {
|
||||
args.add(stack.pop());
|
||||
}
|
||||
CallFunctionTreeItem cft = new CallFunctionTreeItem(this, functionName, args);
|
||||
cft.calculatedFunction = functions.get(Highlighting.stripHilights(functionName.toStringNoQuotes(variables, functions)));
|
||||
cft.calculatedFunction = functions.get(Highlighting.stripHilights(functionName.toStringNoQuotes(null)));
|
||||
stack.push(cft);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ public class ActionDefineLocal extends Action {
|
||||
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();
|
||||
variables.put(Highlighting.stripHilights(name.toStringNoQuotes(regNames, variables, functions)), value);
|
||||
variables.put(Highlighting.stripHilights(name.toStringNoQuotes(null)), value);
|
||||
output.add(new DefineLocalTreeItem(this, name, value));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user