Deobfuscation simplified

This commit is contained in:
Honfika
2013-12-01 13:55:08 +01:00
parent ac96c7dbb5
commit 09aeafb77b
10 changed files with 70 additions and 81 deletions

View File

@@ -16,6 +16,7 @@
*/
package com.jpexs.helpers;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.helpers.Freed;
import com.jpexs.decompiler.flash.helpers.GraphTextWriter;
import com.jpexs.decompiler.flash.helpers.HilightedTextWriter;
@@ -122,6 +123,9 @@ public class Helper {
* @return String representation of the address
*/
public static String formatAddress(long number) {
if (Configuration.decimalAddress.get()) {
return padZeros(Long.toString(number), 4);
}
return padZeros(Long.toHexString(number), 4);
}