Skip to content

Commit c472733

Browse files
committed
chore: rename deploader Stub to DeploaderStub for easier usage
1 parent c41b818 commit c472733

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/deploaderStub/java/com/falsepattern/deploader/Stub.java renamed to src/deploaderStub/java/com/falsepattern/deploader/DeploaderStub.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
import java.util.jar.JarFile;
4646
import java.util.jar.JarInputStream;
4747

48-
public final class Stub {
48+
public final class DeploaderStub {
4949
private static final String BLACKBOARD_MARKER = "FPLIB_DEPLOADER";
5050
private static final String BLACKBOARD_RUN_DEPLOADER_MARKER = "FPLIB_RUN_DEPLOADER";
5151
private static boolean rfbDetected = false;
@@ -61,7 +61,7 @@ public static void bootstrap(boolean rfb) {
6161
if (deploader != null) {
6262
return;
6363
}
64-
Stub scanner = new Stub();
64+
DeploaderStub scanner = new DeploaderStub();
6565
@SuppressWarnings("resource")
6666
URLClassLoader cl = classLoader();
6767
for (URL url: cl.getURLs()) {
@@ -169,7 +169,7 @@ public static void runDepLoader() {
169169
try {
170170
((Method)runDepLoader).invoke(null);
171171
} catch (IllegalAccessException | InvocationTargetException e) {
172-
throw new RuntimeException("Could not run FalsePatternLib deploader!", e);
172+
throw new RuntimeException("FalsePatternLib Deploader exited with an exception.", e);
173173
}
174174
}
175175

src/main/java/com/falsepattern/lib/internal/asm/CoreLoadingPlugin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
package com.falsepattern.lib.internal.asm;
2323

24-
import com.falsepattern.deploader.Stub;
24+
import com.falsepattern.deploader.DeploaderStub;
2525
import com.falsepattern.lib.internal.FPLog;
2626
import com.falsepattern.lib.internal.Tags;
2727
import com.falsepattern.lib.internal.logging.CrashImprover;
@@ -55,7 +55,7 @@ public class CoreLoadingPlugin implements IFMLLoadingPlugin {
5555
private static boolean obfuscated;
5656

5757
static {
58-
Stub.bootstrap(false);
58+
DeploaderStub.bootstrap(false);
5959
FPLog.LOG.info("Removing skill issues...");
6060
try {
6161
Class.forName("thermos.Thermos");
@@ -66,7 +66,7 @@ public class CoreLoadingPlugin implements IFMLLoadingPlugin {
6666
//Scan for dependencies now
6767
FPLog.LOG.info("Scanning for deps...");
6868
long start = System.nanoTime();
69-
Stub.runDepLoader();
69+
DeploaderStub.runDepLoader();
7070
long end = System.nanoTime();
7171
FPLog.LOG.info("Scanned in " + (end - start) / 1000000 + "ms");
7272
//Initializing the rest

src/main/java/com/falsepattern/lib/internal/asm/RFBLoadingPlugin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
package com.falsepattern.lib.internal.asm;
2424

25-
import com.falsepattern.deploader.Stub;
25+
import com.falsepattern.deploader.DeploaderStub;
2626
import com.gtnewhorizons.retrofuturabootstrap.RfbApiImpl;
2727
import com.gtnewhorizons.retrofuturabootstrap.api.RfbPlugin;
2828
import lombok.val;
@@ -43,7 +43,7 @@ public class RFBLoadingPlugin implements RfbPlugin {
4343
exc.invoke(loader, "com.falsepattern.lib.internal.config.EarlyConfig");
4444
exc.invoke(loader, "com.falsepattern.lib.internal.core.LowLevelCallMultiplexer");
4545
} catch (Exception ignored) {}
46-
Stub.bootstrap(true);
47-
Stub.runDepLoader();
46+
DeploaderStub.bootstrap(true);
47+
DeploaderStub.runDepLoader();
4848
}
4949
}

0 commit comments

Comments
 (0)