From 7d5b912c3ca7df65afecc1060569bfb6eac87329 Mon Sep 17 00:00:00 2001 From: Gravit Date: Sat, 4 Jan 2020 21:17:24 +0700 Subject: [PATCH] [FEATURE] ClientService.nativesPath --- .../src/main/java/pro/gravit/launcher/api/ClientService.java | 1 + .../src/main/java/pro/gravit/launcher/client/ClientLauncher.java | 1 + 2 files changed, 2 insertions(+) diff --git a/Launcher/src/main/java/pro/gravit/launcher/api/ClientService.java b/Launcher/src/main/java/pro/gravit/launcher/api/ClientService.java index be931ec8..bbcb2245 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/api/ClientService.java +++ b/Launcher/src/main/java/pro/gravit/launcher/api/ClientService.java @@ -6,5 +6,6 @@ public class ClientService { public static Instrumentation instrumentation; public static ClassLoader classLoader; + public static String nativePath; public static URL[] baseURLs; } diff --git a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java index 8a3fab23..cd2f642e 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java +++ b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java @@ -504,6 +504,7 @@ public static void main(String... args) throws Throwable { AuthService.username = params.pp.username; AuthService.uuid = params.pp.uuid; ClientService.classLoader = classLoader; + ClientService.nativePath = classLoader.nativePath; classLoader.addURL(IOHelper.getCodeSource(ClientLauncher.class).toUri().toURL()); //classForName(classLoader, "com.google.common.collect.ForwardingMultimap"); ClientService.baseURLs = classLoader.getURLs();