Skip to content

Commit

Permalink
Fix launch error involving RuneLite adding RuntimeConfigLoader as a p…
Browse files Browse the repository at this point in the history
…arameter for the client loader
  • Loading branch information
GigiaJ committed Apr 10, 2022
1 parent c0cf7de commit 4a4556d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/rsb/botLauncher/RuneLite.java
Original file line number Diff line number Diff line change
Expand Up @@ -481,11 +481,12 @@ public static void initializeClient(ArgumentAcceptingOptionSpec<?>[] optionSpecs

try
{
final RuntimeConfigLoader runtimeConfigLoader = new RuntimeConfigLoader(okHttpClient);
final ClientLoader clientLoader = new ClientLoader(okHttpClient,
options.valueOf(
optionSpecs[Options.updatemode.getIndex()].ofType(ClientUpdateCheckMode.class)),
runtimeConfigLoader,
(String) options.valueOf("jav_config"));
final RuntimeConfigLoader runtimeConfigLoader = new RuntimeConfigLoader(okHttpClient);

new Thread(() ->
{
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/rsb/internal/RuntimeConfigLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
import okhttp3.Response;

@Slf4j
public class RuntimeConfigLoader implements Supplier<RuntimeConfig>
public class RuntimeConfigLoader extends net.runelite.client.RuntimeConfigLoader implements Supplier<RuntimeConfig>
{
private final OkHttpClient okHttpClient;
private final CompletableFuture<RuntimeConfig> configFuture;

public RuntimeConfigLoader(OkHttpClient okHttpClient)
{
super(okHttpClient);
this.okHttpClient = okHttpClient;
configFuture = fetch();
}
Expand Down

0 comments on commit 4a4556d

Please sign in to comment.