refactor: remove Loader module references and update build config

- Remove Loader from settings.gradle, build.gradle, and .idea/gradle.xml
- Update config.toml JarPath from Loader.jar to OrangeX.jar
- Set Java 8 compatibility in OrangeX build.gradle
- Clean up Loader.java imports and remove Detector call
This commit is contained in:
xiaozhou233 committed 2026-08-24 17:57:11 +08:00
1 parent ccada5472f
commit 4a25197b3c
7 files changed
+8 -13

No files matched your search

-1
View File
@@ -10,7 +10,6 @@
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/Injector" />
<option value="$PROJECT_DIR$/Loader" />
<option value="$PROJECT_DIR$/Minecraft-1.8.8" />
<option value="$PROJECT_DIR$/OrangeX" />
</set>
+5
View File
@@ -33,6 +33,11 @@ shadowJar {
relocate 'com.google.gson', "cn.xiaozhou233.gson"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
// JNI Header Build
tasks.withType(JavaCompile).configureEach {
options.headerOutputDirectory.set(file("../OrangeX-Native/includes"))
@@ -5,6 +5,7 @@ import org.greenrobot.eventbus.EventBus;
@Getter
public class OrangeX {
public static final OrangeX INSTANCE = new OrangeX();
private final EventBus eventBus = EventBus.builder()
.logNoSubscriberMessages(false)
.logSubscriberExceptions(false)
@@ -1,20 +1,13 @@
package cn.xiaozhou233.orangex.loader;
import cn.xiaozhou233.orangex.loader.detector.Detector;
import cn.xiaozhou233.orangex.loader.utils.Utils;
import java.io.File;
public class Loader {
private static ClassLoader minecraftClassLoader;
public static void start() {
System.out.println("======== Loader START ========");
minecraftClassLoader = Utils.findMinecraftClassLoader();
Detector.detect(minecraftClassLoader);
System.out.println("======== Loader END ========");
}
}
+1 -3
View File
@@ -18,12 +18,10 @@ tasks.register("buildInjection", Copy) {
dependsOn(
tasks.named("cleanTmp"),
project(':OrangeX').tasks.named('shadowJar'),
project(':Injector').tasks.named('shadowJar'),
project(':Loader').tasks.named('shadowJar')
project(':Injector').tasks.named('shadowJar')
)
from(project(':OrangeX').tasks.named('shadowJar').flatMap { it.archiveFile })
from(project(':Loader').tasks.named('shadowJar').flatMap { it.archiveFile })
from(rootProject.layout.projectDirectory.dir('natives'))
from(rootProject.layout.projectDirectory.dir('resources'))
into(tmpDir)
+1 -1
View File
@@ -9,6 +9,6 @@ JuiceAgentNativeLibraryPath = ""
[JuiceAgent.Modules.JarLoader]
Enabled = true
InjectionDir = "./injection"
JarPath = "./Loader.jar"
JarPath = "./OrangeX.jar"
EntryClass = "cn.xiaozhou233.orangex.loader.Loader"
EntryMethod = "start"
-1
View File
@@ -2,5 +2,4 @@ rootProject.name = 'OrangeX-Client'
include 'Minecraft-1.8.8'
include 'OrangeX'
include 'Injector'
include 'Loader'