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 88aa75f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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 @@ -212,8 +212,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 88aa75f

Please sign in to comment.