chore: rename deploader Stub to DeploaderStub for easier usage

This commit is contained in:
FalsePattern committed 2025-11-14 00:29:50 +01:00
1 parent c41b8184f0
commit c4727339a3
3 files changed
+9 -9

No files matched your search

@@ -45,7 +45,7 @@ import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import java.util.jar.JarInputStream;
public final class Stub {
public final class DeploaderStub {
private static final String BLACKBOARD_MARKER = "FPLIB_DEPLOADER";
private static final String BLACKBOARD_RUN_DEPLOADER_MARKER = "FPLIB_RUN_DEPLOADER";
private static boolean rfbDetected = false;
@@ -61,7 +61,7 @@ public final class Stub {
if (deploader != null) {
return;
}
Stub scanner = new Stub();
DeploaderStub scanner = new DeploaderStub();
@SuppressWarnings("resource")
URLClassLoader cl = classLoader();
for (URL url: cl.getURLs()) {
@@ -169,7 +169,7 @@ public final class Stub {
try {
((Method)runDepLoader).invoke(null);
} catch (IllegalAccessException | InvocationTargetException e) {
throw new RuntimeException("Could not run FalsePatternLib deploader!", e);
throw new RuntimeException("FalsePatternLib Deploader exited with an exception.", e);
}
}
@@ -21,7 +21,7 @@
*/
package com.falsepattern.lib.internal.asm;
import com.falsepattern.deploader.Stub;
import com.falsepattern.deploader.DeploaderStub;
import com.falsepattern.lib.internal.FPLog;
import com.falsepattern.lib.internal.Tags;
import com.falsepattern.lib.internal.logging.CrashImprover;
@@ -55,7 +55,7 @@ public class CoreLoadingPlugin implements IFMLLoadingPlugin {
private static boolean obfuscated;
static {
Stub.bootstrap(false);
DeploaderStub.bootstrap(false);
FPLog.LOG.info("Removing skill issues...");
try {
Class.forName("thermos.Thermos");
@@ -66,7 +66,7 @@ public class CoreLoadingPlugin implements IFMLLoadingPlugin {
//Scan for dependencies now
FPLog.LOG.info("Scanning for deps...");
long start = System.nanoTime();
Stub.runDepLoader();
DeploaderStub.runDepLoader();
long end = System.nanoTime();
FPLog.LOG.info("Scanned in " + (end - start) / 1000000 + "ms");
//Initializing the rest
@@ -22,7 +22,7 @@
package com.falsepattern.lib.internal.asm;
import com.falsepattern.deploader.Stub;
import com.falsepattern.deploader.DeploaderStub;
import com.gtnewhorizons.retrofuturabootstrap.RfbApiImpl;
import com.gtnewhorizons.retrofuturabootstrap.api.RfbPlugin;
import lombok.val;
@@ -43,7 +43,7 @@ public class RFBLoadingPlugin implements RfbPlugin {
exc.invoke(loader, "com.falsepattern.lib.internal.config.EarlyConfig");
exc.invoke(loader, "com.falsepattern.lib.internal.core.LowLevelCallMultiplexer");
} catch (Exception ignored) {}
Stub.bootstrap(true);
Stub.runDepLoader();
DeploaderStub.bootstrap(true);
DeploaderStub.runDepLoader();
}
}