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()
|
public Applet load()
|
||||||
{
|
{
|
||||||
updateCheckMode = CUSTOM;
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Manifest manifest = new Manifest();
|
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");
|
URL url = new URL("https://raw.githubusercontent.com/runelite-extended/maven-repo/master/live/injected-client.jar");
|
||||||
ReadableByteChannel readableByteChannel = Channels.newChannel(url.openStream());
|
ReadableByteChannel readableByteChannel = Channels.newChannel(url.openStream());
|
||||||
File LOCAL_INJECTED_CLIENT = new File("./injected-client/target/injected-client-" + RuneLiteAPI.getVersion() + ".jar");
|
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");
|
System.out.println("Initializing Inject Client");
|
||||||
updateInjectedClient(readableByteChannel);
|
updateInjectedClient(readableByteChannel);
|
||||||
}
|
}
|
||||||
|
|
||||||
JarInputStream fis;
|
JarInputStream fis;
|
||||||
if (useLocalInjected)
|
|
||||||
|
if (updateCheckMode == CUSTOM)
|
||||||
{
|
{
|
||||||
|
System.out.println("Using local injected client");
|
||||||
fis = new JarInputStream(new FileInputStream(LOCAL_INJECTED_CLIENT));
|
fis = new JarInputStream(new FileInputStream(LOCAL_INJECTED_CLIENT));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
System.out.println("Using live injected client");
|
||||||
fis = new JarInputStream(new FileInputStream(INJECTED_CLIENT));
|
fis = new JarInputStream(new FileInputStream(INJECTED_CLIENT));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
byte[] tmp = new byte[4096];
|
byte[] tmp = new byte[4096];
|
||||||
ByteArrayOutputStream buffer = new ByteArrayOutputStream(756 * 1024);
|
ByteArrayOutputStream buffer = new ByteArrayOutputStream(756 * 1024);
|
||||||
for (; ; )
|
for (; ; )
|
||||||
@@ -195,7 +197,6 @@ public class ClientLoader
|
|||||||
}
|
}
|
||||||
zipFile.replace(metadata.getName(), buffer.toByteArray());
|
zipFile.replace(metadata.getName(), buffer.toByteArray());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
String initialClass = config.getInitialClass();
|
String initialClass = config.getInitialClass();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user