replace AS3 pcode from commanline

This commit is contained in:
honfika@gmail.com
2014-09-06 20:14:19 +02:00
parent 71a5a2a1d7
commit 0544aa0989
6 changed files with 41 additions and 26 deletions

View File

@@ -202,6 +202,11 @@ public class MethodBody implements Cloneable, Serializable {
if (convertException == null) {
HashMap<Integer, String> localRegNames = getLocalRegNames(abc);
writer.startMethod(this.method_info);
if (Configuration.showMethodBodyId.get()) {
writer.appendNoHilight("// method body id:");
writer.appendNoHilight(abc.findBodyIndex(this.method_info));
writer.newLine();
}
Graph.graphToString(convertedItems, writer, LocalData.create(constants, localRegNames, fullyQualifiedNames));
writer.endMethod();
} else if (convertException instanceof TimeoutException) {

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.configuration;
import com.jpexs.decompiler.flash.ApplicationInfo;
@@ -329,6 +330,10 @@ public class Configuration {
@ConfigurationDefaultInt(128)
public static final ConfigurationItem<Integer> lzmaFastBytes = null;
@ConfigurationDefaultBoolean(false)
@ConfigurationCategory("debug")
public static final ConfigurationItem<Boolean> showMethodBodyId = null;
public static final ConfigurationItem<String> pluginPath = null;
private enum OSId {