mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-23 19:46:08 +00:00
Fixed #1828 AS1/2 deobfuscation removing variable declarations
This commit is contained in:
@@ -107,16 +107,18 @@ public class ActionDeobfuscator extends SWFDecompilerAdapter {
|
||||
boolean changed = true;
|
||||
boolean useVariables = false;
|
||||
while (changed) {
|
||||
changed = removeGetTimes(fastActions);
|
||||
changed |= removeObfuscationIfs(fastActions, fakeFunctions, useVariables);
|
||||
changed |= removeObfuscatedUnusedVariables(fastActions);
|
||||
|
||||
actions.setActions(fastActions.toActionList());
|
||||
changed |= ActionListReader.fixConstantPools(null, actions);
|
||||
if (!changed && !useVariables) {
|
||||
useVariables = true;
|
||||
changed = true;
|
||||
while (changed) {
|
||||
changed = removeGetTimes(fastActions);
|
||||
changed |= removeObfuscationIfs(fastActions, fakeFunctions, useVariables);
|
||||
actions.setActions(fastActions.toActionList());
|
||||
changed |= ActionListReader.fixConstantPools(null, actions);
|
||||
if (!changed && !useVariables) {
|
||||
useVariables = true;
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
changed = removeObfuscatedUnusedVariables(fastActions);
|
||||
actions.setActions(fastActions.toActionList());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user