From 6978764beffcc400d282fbb24269de74416ab7b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 22 Nov 2021 19:03:31 +0100 Subject: [PATCH] Fixed AS1/2 - delete operator correct localreg names --- .../flash/action/model/DirectValueActionItem.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 0218f9270..bc08337cd 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 @@ -124,6 +124,11 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue { if (value instanceof ConstantIndex) { return this.constants.get(((ConstantIndex) value).index); } + + if (value instanceof RegisterNumber) { + return ((RegisterNumber) value).translate(); + } + return value.toString(); } @@ -145,6 +150,11 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue { if (value instanceof ConstantIndex) { return writer.append(this.constants.get(((ConstantIndex) value).index)); } + + if (value instanceof RegisterNumber) { + return writer.append(((RegisterNumber) value).translate()); + } + return writer.append(value.toString()); }