mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-01 19:04:38 +00:00
another AS2 deobfscation fix
This commit is contained in:
@@ -25,6 +25,7 @@ import com.jpexs.decompiler.flash.action.ActionLocalData;
|
||||
import com.jpexs.decompiler.flash.action.model.DirectValueActionItem;
|
||||
import com.jpexs.decompiler.flash.action.special.ActionStore;
|
||||
import com.jpexs.decompiler.flash.action.swf4.ActionAdd;
|
||||
import com.jpexs.decompiler.flash.action.swf4.ActionCharToAscii;
|
||||
import com.jpexs.decompiler.flash.action.swf4.ActionEquals;
|
||||
import com.jpexs.decompiler.flash.action.swf4.ActionIf;
|
||||
import com.jpexs.decompiler.flash.action.swf4.ActionJump;
|
||||
@@ -236,6 +237,7 @@ public class ActionDeobfuscatorSimple implements SWFDecompilerListener {
|
||||
|
||||
if (!(action instanceof ActionPush
|
||||
|| action instanceof ActionPushDuplicate
|
||||
|| action instanceof ActionCharToAscii
|
||||
|| action instanceof ActionAdd
|
||||
|| action instanceof ActionAdd2
|
||||
|| action instanceof ActionSubtract
|
||||
|
||||
@@ -170,7 +170,7 @@ public class Helper {
|
||||
} else if (c == '\'') {
|
||||
ret.append("\\'");
|
||||
} else if (c < 32) {
|
||||
ret.append("\\x").append(padZeros(Integer.toHexString(i), 2));
|
||||
ret.append("\\x").append(padZeros(Integer.toHexString((int) c), 2));
|
||||
} else {
|
||||
ret.append(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user