Use -rs=CUSTOM
Im sure @lucwousin will rejoice presently ;p
This commit is contained in:
@@ -79,7 +79,6 @@ public class ClientLoader
|
||||
|
||||
public Applet load()
|
||||
{
|
||||
updateCheckMode = CUSTOM;
|
||||
try
|
||||
{
|
||||
Manifest manifest = new Manifest();
|
||||
@@ -140,9 +139,6 @@ public class ClientLoader
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (updateCheckMode == CUSTOM)
|
||||
{
|
||||
URL url = new URL("https://raw.githubusercontent.com/runelite-extended/maven-repo/master/live/injected-client.jar");
|
||||
ReadableByteChannel readableByteChannel = Channels.newChannel(url.openStream());
|
||||
File LOCAL_INJECTED_CLIENT = new File("./injected-client/target/injected-client-" + RuneLiteAPI.getVersion() + ".jar");
|
||||
@@ -164,15 +160,21 @@ public class ClientLoader
|
||||
System.out.println("Initializing Inject Client");
|
||||
updateInjectedClient(readableByteChannel);
|
||||
}
|
||||
|
||||
JarInputStream fis;
|
||||
if (useLocalInjected)
|
||||
|
||||
if (updateCheckMode == CUSTOM)
|
||||
{
|
||||
System.out.println("Using local injected client");
|
||||
fis = new JarInputStream(new FileInputStream(LOCAL_INJECTED_CLIENT));
|
||||
}
|
||||
else
|
||||
{
|
||||
System.out.println("Using live injected client");
|
||||
fis = new JarInputStream(new FileInputStream(INJECTED_CLIENT));
|
||||
}
|
||||
|
||||
|
||||
byte[] tmp = new byte[4096];
|
||||
ByteArrayOutputStream buffer = new ByteArrayOutputStream(756 * 1024);
|
||||
for (; ; )
|
||||
@@ -195,7 +197,6 @@ public class ClientLoader
|
||||
}
|
||||
zipFile.replace(metadata.getName(), buffer.toByteArray());
|
||||
}
|
||||
}
|
||||
|
||||
String initialClass = config.getInitialClass();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user