mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
updateShared
This commit is contained in:
parent
874a30eb6b
commit
30ae80c1a1
13 changed files with 14 additions and 0 deletions
|
@ -21,6 +21,7 @@ updateVerify: [
|
|||
"minecraft.jar", "forge.jar", "liteloader.jar"
|
||||
];
|
||||
updateExclusions: [];
|
||||
updateShared: [];
|
||||
updateOptional: [];
|
||||
enabledOptional: [];
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ updateVerify: [
|
|||
"minecraft.jar", "forge.jar", "liteloader.jar"
|
||||
];
|
||||
updateExclusions: [];
|
||||
updateShared: [];
|
||||
updateOptional: [];
|
||||
enabledOptional: [];
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ updateVerify: [
|
|||
"minecraft.jar", "forge.jar", "liteloader.jar"
|
||||
];
|
||||
updateExclusions: [];
|
||||
updateShared: [];
|
||||
updateOptional: [];
|
||||
enabledOptional: [];
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ updateVerify: [
|
|||
"minecraft\\.jar"
|
||||
];
|
||||
updateExclusions: [];
|
||||
updateShared: [];
|
||||
updateOptional: [];
|
||||
enabledOptional: [];
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ updateVerify: [
|
|||
"minecraft\\.jar"
|
||||
];
|
||||
updateExclusions: [];
|
||||
updateShared: [];
|
||||
updateOptional: [];
|
||||
enabledOptional: [];
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ updateVerify: [
|
|||
"libraries", "natives", "mods", "minecraft.jar"
|
||||
];
|
||||
updateExclusions: [];
|
||||
updateShared: [];
|
||||
updateOptional: [];
|
||||
enabledOptional: [];
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ updateVerify: [
|
|||
"libraries", "natives", "mods", "minecraft.jar"
|
||||
];
|
||||
updateExclusions: [];
|
||||
updateShared: [];
|
||||
updateOptional: [];
|
||||
enabledOptional: [];
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ updateVerify: [
|
|||
"minecraft.jar", "forge.jar", "liteloader.jar"
|
||||
];
|
||||
updateExclusions: [];
|
||||
updateShared: [];
|
||||
updateOptional: [];
|
||||
enabledOptional: [];
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ updateExclusions: [
|
|||
# "mods/ic2",
|
||||
# "mods/railcraft"
|
||||
];
|
||||
updateShared: [];
|
||||
updateOptional: [];
|
||||
enabledOptional: [];
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ updateVerify: [
|
|||
"minecraft.jar", "forge.jar", "liteloader.jar"
|
||||
];
|
||||
updateExclusions: [];
|
||||
updateShared: [];
|
||||
updateOptional: [];
|
||||
enabledOptional: [];
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ updateVerify: [
|
|||
"minecraft.jar", "forge.jar", "liteloader.jar"
|
||||
];
|
||||
updateExclusions: [];
|
||||
updateShared: [];
|
||||
updateOptional: [];
|
||||
enabledOptional: [];
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ updateVerify: [
|
|||
"minecraft.jar", "forge.jar", "liteloader.jar"
|
||||
];
|
||||
updateExclusions: [];
|
||||
updateShared: [];
|
||||
updateOptional: [];
|
||||
enabledOptional: [];
|
||||
|
||||
|
|
|
@ -109,6 +109,7 @@ public int hashCode() {
|
|||
// Updater and client watch service
|
||||
private final List<String> update = new ArrayList<>();
|
||||
private final List<String> updateExclusions = new ArrayList<>();
|
||||
private final List<String> updateShared = new ArrayList<>();
|
||||
private final List<String> updateVerify = new ArrayList<>();
|
||||
private final Set<MarkedString> updateOptional = new HashSet<>();
|
||||
private final BooleanConfigEntry updateFastCheck;
|
||||
|
@ -139,6 +140,7 @@ public ClientProfile(BlockConfigEntry block) {
|
|||
// Updater and client watch service
|
||||
block.getEntry("update", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(update::add);
|
||||
block.getEntry("updateVerify", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(updateVerify::add);
|
||||
block.getEntry("updateShared", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(updateVerify::add);
|
||||
block.getEntry("updateOptional", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(e -> updateOptional.add(new MarkedString(e)));
|
||||
block.getEntry("updateExclusions", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(updateExclusions::add);
|
||||
block.getEntry("enabledOptional", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(e -> updateOptional.stream().anyMatch(e1 -> e.equals(e1.string) && (e1.mark = true)));
|
||||
|
|
Loading…
Reference in a new issue