mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-24 09:24:33 +00:00
Version 0.8-preview
Add initial modlauncher support Bump ASM version and remove renamed ASM for modlauncher interop Conform static accessor target when transforming accessor, Fixes #342 Detect staticness mismatch on accessors, Fixes #341 Allow Invoker to invoke constructors, Closes #339 Remove commons-io and replace with guava, Fixes #327 Fix refmap generation for non-obfuscated derived classes, Fixes #326 Specify locale for case conversions, Fixes #315 Handle accessor overlap more intelligently, Fixes #307 Add SuppressWarnings support to Annotation Processor, Closes #306 Allow mixins applied to a class to be retrieved easily, Closes #302 Conform refmap entries as they are added to the mapper, fixes #296 Fold in misc lvt generation fixes from fabricmc, closes #295 Fail fast when final method is accidentally hidden by mixin, fixes #293 Fix bug handling 2-slot args in cb injector and args gen, fixes #287 Handle accessor mixin types correctly in mixins, Fixes #305, Fixes #288
This commit is contained in:
1 parent
ab935e061f
commit
fd2f2c79c5
246 files changed
+10899
-3125
No files matched your search
@@ -28,6 +28,7 @@ import java.util.List;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.spongepowered.asm.launch.platform.CommandLineOptions;
|
||||
import org.spongepowered.asm.launch.platform.MixinPlatformManager;
|
||||
import org.spongepowered.asm.mixin.MixinEnvironment;
|
||||
import org.spongepowered.asm.mixin.MixinEnvironment.Phase;
|
||||
@@ -60,7 +61,7 @@ public abstract class MixinBootstrap {
|
||||
/**
|
||||
* Subsystem version
|
||||
*/
|
||||
public static final String VERSION = "0.7.12";
|
||||
public static final String VERSION = "0.8-preview";
|
||||
|
||||
/**
|
||||
* Log all the things
|
||||
@@ -81,6 +82,11 @@ public abstract class MixinBootstrap {
|
||||
* Platform manager instance
|
||||
*/
|
||||
private static MixinPlatformManager platform;
|
||||
|
||||
/**
|
||||
* Connectors
|
||||
*/
|
||||
private static MixinConnectorManager connectors = new MixinConnectorManager();
|
||||
|
||||
private MixinBootstrap() {}
|
||||
|
||||
@@ -117,7 +123,7 @@ public abstract class MixinBootstrap {
|
||||
return;
|
||||
}
|
||||
|
||||
MixinBootstrap.doInit(null);
|
||||
MixinBootstrap.doInit(CommandLineOptions.defaultArgs());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -137,16 +143,11 @@ public abstract class MixinBootstrap {
|
||||
if (!MixinBootstrap.initialised) {
|
||||
MixinBootstrap.initialised = true;
|
||||
|
||||
String command = System.getProperty("sun.java.command");
|
||||
if (command != null && command.contains("GradleStart")) {
|
||||
System.setProperty("mixin.env.remapRefMap", "true");
|
||||
}
|
||||
|
||||
Phase initialPhase = MixinService.getService().getInitialPhase();
|
||||
if (initialPhase == Phase.DEFAULT) {
|
||||
MixinBootstrap.logger.error("Initialising mixin subsystem after game pre-init phase! Some mixins may be skipped.");
|
||||
MixinEnvironment.init(initialPhase);
|
||||
MixinBootstrap.getPlatform().prepare(null);
|
||||
MixinBootstrap.getPlatform().prepare(CommandLineOptions.defaultArgs());
|
||||
MixinBootstrap.initState = false;
|
||||
} else {
|
||||
MixinEnvironment.init(initialPhase);
|
||||
@@ -160,10 +161,15 @@ public abstract class MixinBootstrap {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
static void doInit(List<String> args) {
|
||||
MixinBootstrap.doInit(CommandLineOptions.ofArgs(args));
|
||||
}
|
||||
|
||||
/**
|
||||
* Phase 2 of mixin initialisation, initialise the phases
|
||||
*/
|
||||
static void doInit(List<String> args) {
|
||||
static void doInit(CommandLineOptions args) {
|
||||
if (!MixinBootstrap.initialised) {
|
||||
if (MixinBootstrap.isSubsystemRegistered()) {
|
||||
MixinBootstrap.logger.warn("Multiple Mixin containers present, init suppressed for " + MixinBootstrap.VERSION);
|
||||
@@ -187,6 +193,7 @@ public abstract class MixinBootstrap {
|
||||
|
||||
static void inject() {
|
||||
MixinBootstrap.getPlatform().inject();
|
||||
MixinBootstrap.connectors.inject();
|
||||
}
|
||||
|
||||
private static boolean isSubsystemRegistered() {
|
||||
|
||||
Reference in new issue
Block a user