提交 e0624ce9 编写于 作者: S Skylot

fix: use '$' as separator for inner classes in .jobf file (#415)

上级 7e8435cc
......@@ -112,7 +112,7 @@ class DeobfPresets {
for (DeobfClsInfo deobfClsInfo : deobfuscator.getClsMap().values()) {
if (deobfClsInfo.getAlias() != null) {
list.add(String.format("c %s = %s",
deobfClsInfo.getCls().getClassInfo().getFullName(), deobfClsInfo.getAlias()));
deobfClsInfo.getCls().getClassInfo().makeRawFullName(), deobfClsInfo.getAlias()));
}
}
for (FieldInfo fld : deobfuscator.getFldMap().keySet()) {
......@@ -136,7 +136,7 @@ class DeobfPresets {
}
public String getForCls(ClassInfo cls) {
return clsPresetMap.get(cls.getFullName());
return clsPresetMap.get(cls.makeRawFullName());
}
public String getForFld(FieldInfo fld) {
......
......@@ -111,6 +111,10 @@ public final class ClassInfo {
return pkg.isEmpty() ? shortName : pkg + "." + shortName;
}
public String makeRawFullName() {
return makeFullClsName(this.name, true);
}
public String getFullPath() {
ClassInfo usedAlias = getAlias();
return usedAlias.getPackage().replace('.', File.separatorChar)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册