From de69eb45a4ba629eb5e8af92f42ffc30f30c6673 Mon Sep 17 00:00:00 2001 From: Gravit Date: Sun, 23 Sep 2018 16:47:37 +0700 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=BD=D0=B5=D1=81=D0=B5=D0=BD=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D1=84=D0=B8=D0=BB=D1=8C=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/ru/gravit/launcher/client/ClientLauncher.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java b/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java index 93be9a58..31434bac 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java +++ b/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java @@ -171,6 +171,8 @@ public void write(HOutput output) throws IOException { @LauncherAPI public static String title; @LauncherAPI + public static ClientProfile profile; + @LauncherAPI public static final String SKIN_DIGEST_PROPERTY = "skinDigest"; @LauncherAPI @@ -445,7 +447,7 @@ public static void main(String... args) throws Throwable { Files.delete(paramsFile); } } - + ClientLauncher.profile = profile.object; title = params.title; Launcher.modulesManager.initModules(); // Verify ClientLauncher sign and classpath @@ -506,6 +508,7 @@ private static LinkedList resolveClassPathList(Path clientDir, String... c @LauncherAPI public static void setProfile(ClientProfile profile) { + ClientLauncher.profile = profile; ClientLauncher.title = profile.getTitle(); LogHelper.debug("New Profile name: %s", profile.getTitle()); }