mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 13:05:52 +08:00
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:
1 parent
ccada5472f
commit
4a25197b3c
7 files changed
+8
-13
No files matched your search
Generated
-1
@@ -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>
|
||||
|
||||
@@ -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
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
@@ -2,5 +2,4 @@ rootProject.name = 'OrangeX-Client'
|
||||
include 'Minecraft-1.8.8'
|
||||
include 'OrangeX'
|
||||
include 'Injector'
|
||||
include 'Loader'
|
||||
|
||||
Reference in new issue
Block a user