[FEATURE] Profile Settings

This commit is contained in:
Gravita 2021-04-26 23:22:32 +07:00
parent 68d7c0a947
commit 9f05594915

View file

@ -64,9 +64,11 @@ public final class ClientProfile implements Comparable<ClientProfile> {
@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;
}
}