Skip to content

Commit

Permalink
Add lwjglx debug agent support
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenraven committed Mar 24, 2023
1 parent ca9044a commit e20c62e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.apache.logging.log4j.Logger;
import org.lwjgl.system.Configuration;
import org.lwjgl.system.Platform;
import org.lwjglx.Sys;
import org.spongepowered.asm.launch.GlobalProperties;
import org.spongepowered.asm.service.mojang.MixinServiceLaunchWrapper;

Expand Down Expand Up @@ -44,6 +45,7 @@ public Lwjgl3ifyCoremod() {
launchLoader.addClassLoaderExclusion("org.w3c.dom");
launchLoader.addClassLoaderExclusion("org.xml.sax");
launchLoader.addClassLoaderExclusion("org.hotswap.agent");
launchLoader.addClassLoaderExclusion("org.lwjglx.debug");
} catch (ClassCastException e) {
LOGGER.warn("Unsupported launch class loader type " + getClass().getClassLoader().getClass(), e);
}
Expand All @@ -55,6 +57,7 @@ public Lwjgl3ifyCoremod() {
}
if (FMLLaunchHandler.side().isClient()) {
clientMacOsFix();
Sys.initialize();
}
}

Expand Down

0 comments on commit e20c62e

Please sign in to comment.