From 4778aee9ca7551c72622e7a73ac18aaf1e8a953b Mon Sep 17 00:00:00 2001 From: Modbder Date: Mon, 14 Sep 2015 14:25:14 +0300 Subject: [PATCH] [2.0]Added: DummyCore will print known big ASM modifiers at the crashreport --- DummyCore/Core/DCCrashCallable.java | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 DummyCore/Core/DCCrashCallable.java diff --git a/DummyCore/Core/DCCrashCallable.java b/DummyCore/Core/DCCrashCallable.java new file mode 100644 index 0000000..a6d9b7c --- /dev/null +++ b/DummyCore/Core/DCCrashCallable.java @@ -0,0 +1,29 @@ +package DummyCore.Core; + +import DummyCore.Utils.LoadingUtils; +import cpw.mods.fml.common.ICrashCallable; + +public class DCCrashCallable implements ICrashCallable { + + @Override + public String call() throws Exception { + return "'Special case ASM modification mods: '" + + "'Note, that this mods might not be involved in the crash in ANY WAY!'" + + "'DummyCore just prints some known mods for a lot of ASM modifications'" + + computeASMIfiers(); + } + + @Override + public String getLabel() { + return "[DummyCore]"; + } + + public String computeASMIfiers() + { + String retStr=""; + for(String s : LoadingUtils.knownBigASMModifiers) + retStr += "'"+s+"'"; + return retStr; + } + +}