mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 21:01:22 +00:00
WIP Safe strings handling
This commit is contained in:
@@ -545,10 +545,17 @@ public class IdentifiersDeobfuscation {
|
||||
* words)
|
||||
* @return Printable identifier
|
||||
*/
|
||||
public static String printIdentifier(boolean as3, String s, String... validExceptions) {
|
||||
public static String printIdentifier(SWF swf, boolean as3, String s, String... validExceptions) {
|
||||
if (s == null || s.isEmpty()) {
|
||||
return "";
|
||||
}
|
||||
|
||||
if (Configuration.useSafeStr.get() && as3) {
|
||||
Map<String, String> map = swf.getAs3ObfuscatedIdentifiers();
|
||||
if (map.containsKey(s)) {
|
||||
return map.get(s);
|
||||
}
|
||||
}
|
||||
|
||||
if (s.startsWith("\u00A7") && s.endsWith("\u00A7")) { // Assuming already printed - TODO:detect better
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user