mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FEATURE] Profile Settings
This commit is contained in:
parent
68d7c0a947
commit
9f05594915
1 changed files with 16 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue