Dots in names should work now? I guess

This commit is contained in:
SuspiciousActivity committed 2019-02-25 18:39:55 +01:00
1 parent a7576ea4dc
commit cf2248b2d1
1 file changed
+1 -3
+1 -3
View File
@@ -756,7 +756,7 @@ public class Main extends JFrame {
for (ClassNode element : classes) { for (ClassNode element : classes) {
ClassWriter writer = new ClassWriter(computeFlags); ClassWriter writer = new ClassWriter(computeFlags);
element.accept(writer); element.accept(writer);
output.putNextEntry(new JarEntry(element.name.replaceAll("\\.", "/") + ".class")); output.putNextEntry(new JarEntry(element.name + ".class"));
output.write(writer.toByteArray()); output.write(writer.toByteArray());
output.closeEntry(); output.closeEntry();
} }
@@ -811,8 +811,6 @@ public class Main extends JFrame {
paths.add(next.getName()); paths.add(next.getName());
} else if (next.getName().startsWith("$") || next.getName().contains("$$") } else if (next.getName().startsWith("$") || next.getName().contains("$$")
|| next.getName().endsWith("$")) { // obfuscated || next.getName().endsWith("$")) { // obfuscated
// with
// $
paths.add(next.getName()); paths.add(next.getName());
} }
ClassReader reader; ClassReader reader;