mirror of
https://github.com/SuspiciousActivity/ByteEdit.git
synced 2026-08-13 17:56:17 +00:00
Dots in names should work now? I guess
This commit is contained in:
1 parent
a7576ea4dc
commit
cf2248b2d1
1 file changed
+1
-3
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user