Skip to content

Commit

Permalink
Disable TraceClassVisitor
Browse files Browse the repository at this point in the history
  • Loading branch information
Lassebq committed Sep 8, 2024
1 parent c81cc22 commit 61859c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dependencies {
implementation 'org.mcphackers.rdi:rdi:1.0'
implementation "org.ow2.asm:asm:${project.asm_version}"
implementation "org.ow2.asm:asm-tree:${project.asm_version}"
implementation "org.ow2.asm:asm-util:${project.asm_version}"
implementation 'org.json:json:20230311'
// I'll bring discord RPC support later, when I have an environment to compile natives

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.tree.ClassNode;
import org.objectweb.asm.util.TraceClassVisitor;

// URLClassLoader is required to support ModLoader loading mods from mod folder
public class LaunchClassLoader extends URLClassLoader implements ClassNodeSource, ResourceSource {
Expand Down Expand Up @@ -212,8 +211,8 @@ public void saveDebugClass(ClassNode node) {
try {
File cls = new File(debugOutput, node.name + ".class");
cls.getParentFile().mkdirs();
TraceClassVisitor trace = new TraceClassVisitor(new java.io.PrintWriter(new File(debugOutput, node.name + ".dump")));
node.accept(trace);
// TraceClassVisitor trace = new TraceClassVisitor(new java.io.PrintWriter(new File(debugOutput, node.name + ".dump")));
// node.accept(trace);
ClassWriter writer = new SafeClassWriter(this, COMPUTE_MAXS | COMPUTE_FRAMES);
node.accept(writer);
byte[] classData = writer.toByteArray();
Expand Down

0 comments on commit 61859c7

Please sign in to comment.