mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 19:54:37 +00:00
AS2 deobfuscation fixes
This commit is contained in:
@@ -50,6 +50,10 @@ public class ActionCall extends Action {
|
||||
|
||||
@Override
|
||||
public boolean execute(LocalDataArea lda) {
|
||||
if (lda.stack.size() == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
lda.stage.callFrame(EcmaScript.toInt32(lda.stack.pop()));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,12 @@ public class ActionCallMethod extends Action {
|
||||
return false;
|
||||
}
|
||||
String methodName = lda.popAsString();
|
||||
ActionScriptObject obj = (ActionScriptObject) lda.pop();
|
||||
Object obj0 = lda.pop();
|
||||
if (!(obj0 instanceof ActionScriptObject)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
ActionScriptObject obj = (ActionScriptObject) obj0;
|
||||
int numArgs = (int) (double) lda.popAsNumber();
|
||||
if (lda.stack.size() < numArgs) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user