From 9f05594915fcaeb88be625af5c27afe854f7e49a Mon Sep 17 00:00:00 2001 From: Gravita Date: Mon, 26 Apr 2021 23:22:32 +0700 Subject: [PATCH] [FEATURE] Profile Settings --- .../gravit/launcher/profiles/ClientProfile.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java b/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java index c146afcb..3e317d0c 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java @@ -64,9 +64,11 @@ public final class ClientProfile implements Comparable { @LauncherNetworkAPI private int minJavaVersion = 8; @LauncherNetworkAPI - private int maxJavaVersion = 17; + private int maxJavaVersion = 999; @LauncherNetworkAPI private boolean warnMissJavaVersion = true; + @LauncherNetworkAPI + private ProfileDefaultSettings settings = new ProfileDefaultSettings(); // Client @LauncherNetworkAPI private int sortIndex; @@ -205,6 +207,14 @@ public void setWarnMissJavaVersion(boolean warnMissJavaVersion) { this.warnMissJavaVersion = warnMissJavaVersion; } + public ProfileDefaultSettings getSettings() { + return settings; + } + + public void setSettings(ProfileDefaultSettings settings) { + this.settings = settings; + } + public void updateOptionalGraph() { for (OptionalFile file : updateOptional) { if (file.dependenciesFile != null) { @@ -545,5 +555,10 @@ public InetSocketAddress toSocketAddress() { } } + public static class ProfileDefaultSettings { + public int ram; + public boolean autoEnter; + public boolean fullScreen; + } }