From 76691da8c912940796578d1c7b47e21aef085fab Mon Sep 17 00:00:00 2001 From: Gravit Date: Wed, 24 Apr 2019 13:29:04 +0700 Subject: [PATCH] =?UTF-8?q?[FEATURE]=20=D0=9F=D0=B0=D1=80=D0=B0=D0=BC?= =?UTF-8?q?=D0=B5=D1=82=D1=80=20isPreset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/ru/gravit/launcher/profiles/ClientProfile.java | 1 + .../java/ru/gravit/launcher/profiles/optional/OptionalFile.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libLauncher/src/main/java/ru/gravit/launcher/profiles/ClientProfile.java b/libLauncher/src/main/java/ru/gravit/launcher/profiles/ClientProfile.java index 24a03895..488ab996 100644 --- a/libLauncher/src/main/java/ru/gravit/launcher/profiles/ClientProfile.java +++ b/libLauncher/src/main/java/ru/gravit/launcher/profiles/ClientProfile.java @@ -258,6 +258,7 @@ public void unmarkOptional(OptionalFile file) { file.mark = false; if (file.dependenciesCount != null) { for (OptionalFile f : file.dependenciesCount) { + if(f.isPreset) continue; unmarkOptional(f); } file.dependenciesCount.clear(); diff --git a/libLauncher/src/main/java/ru/gravit/launcher/profiles/optional/OptionalFile.java b/libLauncher/src/main/java/ru/gravit/launcher/profiles/optional/OptionalFile.java index 915e2ab2..378c34e9 100644 --- a/libLauncher/src/main/java/ru/gravit/launcher/profiles/optional/OptionalFile.java +++ b/libLauncher/src/main/java/ru/gravit/launcher/profiles/optional/OptionalFile.java @@ -33,6 +33,8 @@ public class OptionalFile { @LauncherAPI public int subTreeLevel = 1; @LauncherAPI + public boolean isPreset; + @LauncherAPI public long permissions = 0L; @LauncherAPI public transient Set dependenciesCount;