From ab7256dff5d6d37488081ba7a01b36d3ee9ef563 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Sun, 5 Jun 2022 17:43:23 +0200 Subject: refactor (#36) * refactor * fix vig compat * fix nanovg thingy * e * finalize * gui utils package thingy --- .../oneconfig/internal/init/OneConfigInit.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/main/java/cc/polyfrost/oneconfig/internal/init/OneConfigInit.java (limited to 'src/main/java/cc/polyfrost/oneconfig/internal/init/OneConfigInit.java') diff --git a/src/main/java/cc/polyfrost/oneconfig/internal/init/OneConfigInit.java b/src/main/java/cc/polyfrost/oneconfig/internal/init/OneConfigInit.java new file mode 100644 index 0000000..438c60e --- /dev/null +++ b/src/main/java/cc/polyfrost/oneconfig/internal/init/OneConfigInit.java @@ -0,0 +1,24 @@ +package cc.polyfrost.oneconfig.internal.init; + +import net.minecraft.launchwrapper.Launch; +import org.spongepowered.asm.launch.MixinBootstrap; +import org.spongepowered.asm.mixin.Mixins; + +/** + * Initializes the OneConfig mod. + *

MUST BE CALLED VIA AN ITWEAKER / FMLLOADINGPLUGIN FOR 1.12 AND BELOW, OR A PRELAUNCH TWEAKER FOR 1.14+ FABRIC.

+ */ +@SuppressWarnings("unused") +public class OneConfigInit { + + /** + * Initializes the OneConfig mod. + * + * @param args The arguments passed to the mod. + */ + public static void initialize(String[] args) { + Launch.blackboard.put("oneconfig.initialized", true); + MixinBootstrap.init(); + Mixins.addConfiguration("mixins.oneconfig.json"); + } +} -- cgit