diff --git a/CHANGELOG.md b/CHANGELOG.md index d9e0463c1..e8549cbed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ All notable changes to this project will be documented in this file. - AS1/2 - GotoFrame2 - scene bias is first - AS1/2 - direct editation - gotoAndPlay/Stop with scenebias - AS1/2 - parenthesis around callfunction +- AS1/2 - deobfuscate function parameter names in registers ## [14.6.0] - 2021-11-22 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DirectValueActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DirectValueActionItem.java index bc08337cd..cdcca3e2b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DirectValueActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DirectValueActionItem.java @@ -16,6 +16,7 @@ */ package com.jpexs.decompiler.flash.action.model; +import com.jpexs.decompiler.flash.IdentifiersDeobfuscation; import com.jpexs.decompiler.flash.SourceGeneratorLocalData; import com.jpexs.decompiler.flash.action.swf4.ActionPush; import com.jpexs.decompiler.flash.action.swf4.ConstantIndex; @@ -126,7 +127,7 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue { } if (value instanceof RegisterNumber) { - return ((RegisterNumber) value).translate(); + return IdentifiersDeobfuscation.printIdentifier(false, ((RegisterNumber) value).translate()); } return value.toString(); @@ -152,7 +153,7 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue { } if (value instanceof RegisterNumber) { - return writer.append(((RegisterNumber) value).translate()); + return writer.append(IdentifiersDeobfuscation.printIdentifier(false, ((RegisterNumber) value).translate())); } return writer.append(value.toString()); @@ -191,7 +192,7 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue { srcData.localName = ((RegisterNumber) value).translate(); srcData.regIndex = ((RegisterNumber) value).number; - return writer.appendWithData(((RegisterNumber) value).translate(), srcData); + return writer.appendWithData(IdentifiersDeobfuscation.printIdentifier(false, ((RegisterNumber) value).translate()), srcData); } return writer.append(EcmaScript.toString(value)); }