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()); }