mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 09:10:45 +00:00
AS1/2 deobfuscation - do not remove unused obfuscated variables - we are unable to properly determine if the variable is unused.
This commit is contained in:
+4
-2
@@ -117,8 +117,9 @@ public class ActionDeobfuscator extends SWFDecompilerAdapter {
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
changed = removeObfuscatedUnusedVariables(fastActions);
|
||||
actions.setActions(fastActions.toActionList());
|
||||
//Commented out, as it may remove variables used in another DoAction or inside functions.
|
||||
//changed = removeObfuscatedUnusedVariables(fastActions);
|
||||
//actions.setActions(fastActions.toActionList());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -320,6 +321,7 @@ public class ActionDeobfuscator extends SWFDecompilerAdapter {
|
||||
return ret;
|
||||
}
|
||||
|
||||
//currently unused
|
||||
private boolean removeObfuscatedUnusedVariables(FastActionList actions) throws InterruptedException {
|
||||
if (actions.isEmpty()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user