mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-08 15:03:48 +00:00
fix
This commit is contained in:
@@ -181,7 +181,8 @@ public class ActionDeobfuscator extends ActionDeobfuscatorSimple {
|
||||
}
|
||||
}
|
||||
|
||||
int unreachableCount = actions.getUnreachableActions(i, result.idx).size();
|
||||
List<Action> unreachable = actions.getUnreachableActions(i, result.idx);
|
||||
int unreachableCount = unreachable == null ? 0 : unreachable.size();
|
||||
|
||||
if (allValueValid && newIstructionCount + 2 < unreachableCount) {
|
||||
Action target = actions.get(result.idx);
|
||||
|
||||
@@ -154,7 +154,8 @@ public class ActionDeobfuscatorSimple implements SWFDecompilerListener {
|
||||
|
||||
if (result.idx != -1) {
|
||||
int newIstructionCount = 1 /*jump */ + result.stack.size();
|
||||
int unreachableCount = actions.getUnreachableActions(i, result.idx).size();
|
||||
List<Action> unreachable = actions.getUnreachableActions(i, result.idx);
|
||||
int unreachableCount = unreachable == null ? 0 : unreachable.size();
|
||||
|
||||
if (newIstructionCount < unreachableCount) {
|
||||
Action target = actions.get(result.idx);
|
||||
|
||||
@@ -156,6 +156,17 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue {
|
||||
|
||||
@Override
|
||||
public GraphTextWriter appendTo(GraphTextWriter writer, LocalData localData) {
|
||||
if (value instanceof Double) {
|
||||
if (Double.compare((double) (Double) value, 0) == 0) {
|
||||
return writer.append("0");
|
||||
}
|
||||
}
|
||||
if (value instanceof Float) {
|
||||
if (Float.compare((float) (Float) value, 0) == 0) {
|
||||
return writer.append("0");
|
||||
}
|
||||
}
|
||||
|
||||
if (value instanceof String) {
|
||||
return writer.append("\"").append(Helper.escapeActionScriptString((String) value)).append("\"");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user