mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-22 08:38:24 +00:00
Output implementation reports to debug output folder
This commit is contained in:
1 parent
85330a8649
commit
2135c723b4
3 files changed
+7
-3
No files matched your search
@@ -446,7 +446,7 @@ public class MixinTransformer extends TreeTransformer {
|
||||
|
||||
private void dumpClass(String fileName, byte[] bytes) {
|
||||
try {
|
||||
FileUtils.writeByteArrayToFile(new File(".mixin.out/" + fileName + ".class"), bytes);
|
||||
FileUtils.writeByteArrayToFile(new File(Constants.DEBUG_OUTPUT_PATH + "/" + fileName + ".class"), bytes);
|
||||
} catch (IOException ex) {
|
||||
// don't care
|
||||
}
|
||||
|
||||
+5
-2
@@ -36,6 +36,7 @@ import org.apache.commons.io.IOUtils;
|
||||
import org.objectweb.asm.tree.ClassNode;
|
||||
import org.spongepowered.asm.mixin.transformer.ClassInfo.Method;
|
||||
import org.spongepowered.asm.mixin.transformer.ClassInfo.Traversal;
|
||||
import org.spongepowered.asm.util.Constants;
|
||||
import org.spongepowered.asm.util.PrettyPrinter;
|
||||
import org.spongepowered.asm.util.SignaturePrinter;
|
||||
|
||||
@@ -60,8 +61,10 @@ public class MixinTransformerModuleInterfaceChecker implements IMixinTransformer
|
||||
private final File report;
|
||||
|
||||
public MixinTransformerModuleInterfaceChecker() {
|
||||
this.csv = new File("mixin_implementation_report.csv");
|
||||
this.report = new File("mixin_implementation_report.txt");
|
||||
File debugOutputFolder = new File(Constants.DEBUG_OUTPUT_PATH);
|
||||
debugOutputFolder.mkdirs();
|
||||
this.csv = new File(debugOutputFolder, "mixin_implementation_report.csv");
|
||||
this.report = new File(debugOutputFolder, "mixin_implementation_report.txt");
|
||||
|
||||
try {
|
||||
Files.write("Class,Method,Signature,Interface\n", this.csv, Charsets.ISO_8859_1);
|
||||
|
||||
@@ -33,6 +33,7 @@ public abstract class Constants {
|
||||
public static final String INIT = "<init>";
|
||||
public static final String CLINIT = "<clinit>";
|
||||
public static final String IMAGINARY_SUPER = "super$";
|
||||
public static final String DEBUG_OUTPUT_PATH = ".mixin.out";
|
||||
|
||||
private Constants() {}
|
||||
}
|
||||
Reference in new issue
Block a user